import { Button, Divider, Grid, Paper, Text } from '@mantine/core' interface ActionFormProps { title?: string labelConfirm: string labelCancel?: string onConfirm?: () => void onCancel: () => void } export default function ActionFrom(props: ActionFormProps) { const { title = 'Actions', labelConfirm, labelCancel = 'Back', onConfirm, onCancel, } = props return ( {title} {onConfirm ? ( ) : ( )} ) }