import styles from "./CreateDealsFromFileButton.module.css";
import { Text } from "@mantine/core";
import { usePrefillDealsWithExcelContext } from "../../../pages/LeadsPage/contexts/PrefillDealsWithExcelContext.tsx";

const CreateDealsFromFileButton = () => {
    const { prefillWithExcelOnOpen } = usePrefillDealsWithExcelContext();

    return (
        <div
            className={styles["container"]}
            onClick={prefillWithExcelOnOpen}>
            <Text>Добавление из файла</Text>
        </div>
    );
};

export default CreateDealsFromFileButton;
