import { useFeaturesArchive } from 'hooks/api/getters/useFeaturesArchive/useFeaturesArchive'; import type { FC } from 'react'; import type { SortingRule } from 'react-table'; import { createLocalStorage } from 'utils/createLocalStorage'; import { ArchiveTable } from './ArchiveTable/ArchiveTable'; const defaultSort: SortingRule = { id: 'archivedAt' }; interface IProjectFeaturesTable { projectId: string; } export const ProjectFeaturesArchiveTable: FC = ({ projectId, }) => { const { archivedFeatures, loading, refetchArchived } = useFeaturesArchive(projectId); const { value, setValue } = createLocalStorage( `${projectId}:ProjectFeaturesArchiveTable`, defaultSort, ); return ( ); };