import { useTranslation } from "react-i18next"; import { Input } from "@/components/input"; import { Switch } from "@/components/switch"; import type { IframeConfig, WidgetEditFormProps } from "@/types/homepage-types"; export function IframeEditForm({ config, onChange, }: WidgetEditFormProps) { const { t } = useTranslation(); return (
onChange({ ...config, url: e.target.value })} placeholder="https://example.com" className="h-8 text-sm" />
onChange({ ...config, scrolling: v })} />
); }