+
{isPending ? (
) : notebooks.length === 0 ? (
@@ -39,20 +85,19 @@ export const ExplorerNavNotebooks = ({ onBack }: { onBack: () => void }) => {
{search ? 'No notebooks found' : 'No notebooks created yet'}
) : (
- notebooks.map((notebook) => {
- const isActive = router.pathname.includes('/explorer/notebook/') && id === notebook.id
-
- return (
-
-
- {notebook.name}
-
- )
- })
+ notebooks[index]?.id ?? `notebook-${index}`}
+ getItemSize={() => NOTEBOOK_ROW_HEIGHT}
+ gap={1}
+ hasNextPage={hasNextPage}
+ isLoadingNextPage={isFetchingNextPage}
+ onLoadNextPage={fetchNextPage}
+ />
)}