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

type Props = ButtonProps;

const AddDealProductButton: FC<Props> = props => {
    const { onCreateClick } = useDealProductActions();

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

export default AddDealProductButton;
