import { jsx as _jsx } from "react/jsx-runtime";
import { useEffect, useRef } from 'react';
const Table = ({ children, useTableRef, totalWidth, }) => {
    const tableRef = useRef(null);
    useEffect(() => {
        if (useTableRef && tableRef.current) {
            useTableRef(tableRef);
        }
    }, [useTableRef]);
    return (_jsx("table", { className: "ff-spreadsheet-table", ref: tableRef, style: {
            minWidth: `${60 + totalWidth}px`,
            tableLayout: 'fixed',
        }, children: children }));
};
export default Table;
//# sourceMappingURL=Table.js.map