import { jsx } from 'react/jsx-runtime';
import { useRef, useEffect } 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 { Table as default };
//# sourceMappingURL=Table.js.map
