import Add from "@mui/icons-material/Add"; import { Box, Button, type SxProps, type Theme } from "@mui/material"; import { getLocalizedString } from "@olenbetong/appframe-core"; type SubmitButtonsProps = { /** * Whether the form is in edit mode. If true, delete button is visible and submit button's text changes. */ edit?: boolean; /** * Set loading state for submit button */ loading?: boolean; /** * Custom styles for Box wrapper around buttons */ sx?: SxProps; onDelete?: () => void; onCancel?: () => void; onSubmit?: () => void; }; export function SubmitButtons({ edit, loading, onDelete, onCancel, onSubmit, sx }: SubmitButtonsProps) { return ( {edit && } ); }