import { Language } from "./lib/types"; import ArticleSelector from "./components/ArticleSelector/ArticleSelector"; import Panel from "./components/Panel/Panel"; import TOC from "./components/TOC/TOC"; import useUIStore from "./store/uiStore"; import styles from "./App.module.css"; import CelexSelector from "./components/CelexSelector/CelexSelector"; import { useTOC } from "./hooks/toc"; function App() { const numPanels = useUIStore((state) => state.numPanels); const addPanel = useUIStore((state) => state.addPanel); const { data: toc, isPending, error } = useTOC(); if (isPending) { return
Loading...
; } if (error) { return
Error: {error.message}
; } return (
{Array.from({ length: numPanels }, (_, index) => ( ))}
); } export default App;