import type { Component } from 'solid-js'; import { A, useLocation, useNavigate } from '@solidjs/router'; import { Show } from 'solid-js'; import { authStore } from './store/authStore'; import { appStore } from './store/appStore'; interface AppContainerProps { children?: any; } const AppContainer: Component = (props) => { const location = useLocation(); const navigate = useNavigate(); const handleLogout = () => { authStore.logout(); navigate('/login'); }; return (
{/* Top Navigation Bar */}
{/* Main Content Area */}
{props.children}
); }; export default AppContainer;