import { FC } from "react";
import { Button, Flex } from "@mantine/core";

type Props = {
    onClose: () => void;
};

const BaseFormModalActions: FC<Props> = ({ onClose }) => (
    <Flex
        justify={"flex-end"}
        gap={"xs"}>
        <Button
            variant={"subtle"}
            onClick={onClose}>
            Отменить
        </Button>
        <Button
            type={"submit"}
            variant={"default"}>
            Сохранить
        </Button>
    </Flex>
);

export default BaseFormModalActions;
