import { Box } from '@material-ui/core'; import { BodyText, HeaderText } from './Text'; import Panel from './Panel'; import SharedStorageNode from './SharedStorageNode'; import InnerPanel from './InnerPanel'; import PanelHeader from './PanelHeader'; import PeriodicFetch from '../lib/fetchers/periodicFetch'; const SharedStorage = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { const { data } = PeriodicFetch( `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_shared_storage?anvil_uuid=`, anvil?.anvil_uuid, ); return ( {data?.file_systems && data.file_systems.map( (fs: AnvilSharedStorageFileSystem): JSX.Element => ( {fs?.nodes && fs.nodes.map( ( node: AnvilSharedStorageNode, index: number, ): JSX.Element => ( ), )} ), )} ); }; export default SharedStorage;