import { ComponentProps } from 'react'; import { FilesTable } from '@/react/docker/components/FilesTable'; import { createPersistedStore } from '@@/datatables/types'; import { useTableState } from '@@/datatables/useTableState'; const tableKey = 'host-browser'; const settingsStore = createPersistedStore(tableKey, 'Name'); interface Props extends Omit< ComponentProps, 'onSearchChange' | 'tableState' | 'title' > { relativePath: string; } export function AgentVolumeBrowser({ relativePath, dataset, isRoot, onBrowse, onDelete, onDownload, onFileSelectedForUpload, onGoToParent, onRename, isUploadAllowed, }: Props) { const tableState = useTableState(settingsStore, tableKey); return ( ); }