import {Box, Heading} from "@steffo/bluelib-react" import * as React from "react" import {ManagedViewSet} from "../../hooks/useManagedViewSet" import {SophonNotebook} from "../../types/SophonTypes" import {Empty} from "../elements/Empty" import {Loading} from "../elements/Loading" import {NotebookResourcePanel} from "./NotebookResourcePanel" export interface NotebookListBoxProps { viewSet: ManagedViewSet } export function NotebookListBox({viewSet}: NotebookListBoxProps): JSX.Element { const resources = React.useMemo( () => { if(!viewSet.resources) { return } if(viewSet.resources.length === 0) { return This project has no notebooks. } return viewSet.resources?.map(res => ) }, [viewSet], ) return ( Notebooks

Notebooks are interactive Python documents that you can edit in your browser and run on Sophon server.

{resources}
) }