mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-23 15:24:21 +00:00
25 lines
703 B
TypeScript
25 lines
703 B
TypeScript
|
import {Box, Heading} from "@steffo/bluelib-react"
|
||
|
import * as React from "react"
|
||
|
import {ManagedViewSet} from "../../hooks/useManagedViewSet"
|
||
|
import {SophonNotebook} from "../../types/SophonTypes"
|
||
|
import {NotebookResourcePanel} from "./NotebookResourcePanel"
|
||
|
|
||
|
|
||
|
export interface NotebookListBoxProps {
|
||
|
viewSet: ManagedViewSet<SophonNotebook>
|
||
|
}
|
||
|
|
||
|
|
||
|
export function NotebookListBox({viewSet}: NotebookListBoxProps): JSX.Element {
|
||
|
// TODO: Add some flavour text
|
||
|
|
||
|
return (
|
||
|
<Box>
|
||
|
<Heading level={3}>
|
||
|
Notebooks
|
||
|
</Heading>
|
||
|
{viewSet.resources?.map(res => <NotebookResourcePanel resource={res} key={res.value.slug}/>)}
|
||
|
</Box>
|
||
|
)
|
||
|
}
|