({ children, mode, setProgress, toggleMode, showAlert })
| 46 | |
| 47 | |
| 48 | const Layout = ({ children, mode, setProgress, toggleMode, showAlert }) => { |
| 49 | return ( |
| 50 | <div className="h-full w-full"> |
| 51 | <Navbar |
| 52 | title="BITBOX" |
| 53 | home="Home" |
| 54 | about="About Us" |
| 55 | community="Community" |
| 56 | projects="Projects" |
| 57 | blog="Blogs" |
| 58 | discussion="Discussion" |
| 59 | contributors="Contributors" |
| 60 | ai="AI" |
| 61 | Feedback="Feedback" |
| 62 | showAlert={showAlert} |
| 63 | mode={mode} |
| 64 | toggleMode={toggleMode} |
| 65 | /> |
| 66 | {children} |
| 67 | <Footer mode={mode} setProgress={setProgress} setAlert={showAlert} /> |
| 68 | </div> |
| 69 | ); |
| 70 | }; |
| 71 | |
| 72 | function App() { |
| 73 | const [mode, setMode] = useAtom(modeAtom); |
nothing calls this directly
no outgoing calls
no test coverage detected