import { Form, FormField, FormSubmitButton, Row, TextField, Button } from '@umami/react-zen'; import { useUpdateQuery } from '@/components/hooks'; import { DOMAIN_REGEX } from '@/lib/constants'; import { useMessages } from '@/components/hooks'; export function WebsiteAddForm({ teamId, onSave, onClose, }: { teamId?: string; onSave?: () => void; onClose?: () => void; }) { const { formatMessage, labels, messages } = useMessages(); const { mutateAsync, error, isPending } = useUpdateQuery('/websites', { teamId }); const handleSubmit = async (data: any) => { await mutateAsync(data, { onSuccess: async () => { onSave?.(); onClose?.(); }, }); }; return (
); }