import { FC } from "react";
import { IconPlus } from "@tabler/icons-react";
import { ButtonProps, Text } from "@mantine/core";
import InlineButton from "@/components/ui/InlineButton/InlineButton";
import useServiceActions from "@/modules/dealModularEditorTabs/FulfillmentBase/shared/hooks/utils/useServiceActions";

type Props = ButtonProps;

const AddDealServiceButton: FC<Props> = props => {
    const { onCreateClick } = useServiceActions();

    return (
        <InlineButton
            {...props}
            onClick={onCreateClick}>
            <IconPlus />
            <Text>Добавить услугу</Text>
        </InlineButton>
    );
};

export default AddDealServiceButton;
