import { FC } from 'react';
import { TableUseTableStateExample } from './demo/components/use-observing-table-state-demo';
import { ResetPaginationMode } from './';

export default {
    title: 'Table/UseObservingTableState',
    parameters: {},
};

export const ResetPaginationOnUpdateDataRoot: FC = () => (
    <TableUseTableStateExample resetPaginationMode={ResetPaginationMode.OnUpdateDataRoot} />
);

export const ResetPaginationNever: FC = () => (
    <TableUseTableStateExample resetPaginationMode={ResetPaginationMode.Never} />
);

export const ResetPaginationAlways: FC = () => (
    <TableUseTableStateExample resetPaginationMode={ResetPaginationMode.Always} />
);
