import { useMemo } from "react";
import { DataTableColumn } from "mantine-datatable";
import { DealProductSchema } from "@/lib/client";

const useDealServicesTableColumns = () => {
    return useMemo(
        () =>
            [
                {
                    accessor: "product.name",
                    title: "Название",
                    width: "60%",
                },
                {
                    accessor: "quantity",
                    title: "Кол-во",
                    width: "20%",
                },
                {
                    accessor: "product.size",
                    title: "Размер",
                    width: "20%",
                },
            ] as DataTableColumn<DealProductSchema>[],
        []
    );
};

export default useDealServicesTableColumns;
