import type React from 'react'; import { FiSave } from 'react-icons/fi'; import { IconButton } from '@components/generic/button/IconButton'; import { Loading } from '@components/generic/Loading'; export interface FormProps { submit: () => Promise; loading: boolean; dirty: boolean; children: React.ReactNode; } export const Form = ({ submit, loading, dirty, children, }: FormProps): JSX.Element => { return (
{ e.preventDefault(); }} > {loading && } {children}
} />
); };