import { useTranslation } from "react-i18next"; import type { AlertFeedConfig, WidgetEditFormProps, } from "@/types/homepage-types"; import { Input } from "@/components/input"; export function AlertFeedEditForm({ config, onChange, }: WidgetEditFormProps) { const { t } = useTranslation(); return (
onChange({ ...config, maxItems: Math.max(1, Number(e.target.value)), }) } className="h-8 text-xs" />
); }