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

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

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

export default CreateDealsFromFileButton;
