import { PropsWithChildren } from 'react'; import { LoadingButton } from '@@/buttons'; interface Props { submitLabel: string; loadingText: string; isLoading: boolean; isValid: boolean; 'data-cy'?: string; } export function FormActions({ submitLabel = 'Save', loadingText = 'Saving', isLoading, children, isValid, 'data-cy': dataCy, }: PropsWithChildren) { return (
{submitLabel} {children}
); }