import { useTranslation } from "@termix/plugin-sdk/frontend"; import { Input, Switch } from "@termix/plugin-sdk/ui"; import type { WeatherConfig, WidgetEditFormProps } from "../types.js"; export function WeatherEditForm({ config, onChange, }: WidgetEditFormProps) { const { t } = useTranslation(); return (
onChange({ ...config, location: e.target.value })} placeholder={t("homepage.locationPlaceholder")} className="h-8 text-sm" />
{(["C", "F"] as const).map((u) => ( ))}
onChange({ ...config, showForecast: v })} />
); }