import { Button, Form, Input, Modal } from 'ui' type SavedQuery = { name: string; description?: string } export interface UpdateSavedQueryProps { visible: boolean onCancel: () => void onSubmit: (newValues: SavedQuery) => void initialValues: SavedQuery } export const UpdateSavedQueryModal = ({ visible, onCancel, onSubmit, initialValues, }: UpdateSavedQueryProps) => { function validate(values: SavedQuery) { const errors: Partial = {} if (!values.name) { errors.name = 'Required' } return errors } return (
{({ isSubmitting }: { isSubmitting: boolean }) => ( <> )}
) }