import { useTranslation } from "@termix/plugin-sdk/frontend"; import { Input } from "@termix/plugin-sdk/ui"; import type { CountdownConfig, WidgetEditFormProps } from "../types.js"; export function CountdownEditForm({ config, onChange, }: WidgetEditFormProps) { const { t } = useTranslation(); return (
onChange({ ...config, label: e.target.value })} placeholder={t("homepage.countdownLabelPlaceholder")} className="h-8 text-xs" />
onChange({ ...config, targetDate: e.target.value })} className="h-8 text-xs" />
); }