import React from 'react';
import { TableVirtual } from './TableVirtual';
import { useWixPatternsContainer } from '@wix/bex-core/react';
import { TableCompat } from './TableCompat';
export function Table(props) {
    const { rowHeight, estimatedRowHeight, isVirtual, ...tableProps } = props;
    const container = useWixPatternsContainer();
    const { internalExperiments } = container;
    const isVirtualExperiment = internalExperiments?.enabled('specs.Cairo.TableVirtualizationAsDefault');
    return isVirtualExperiment && isVirtual !== false && !props.rowDetails ? (React.createElement(TableVirtual, { ...tableProps, rowHeight: rowHeight, estimatedRowHeight: estimatedRowHeight })) : (React.createElement(TableCompat, { ...tableProps }));
}
//# sourceMappingURL=Table.js.map