import { ReactNode, useState } from 'react'
import { Link, useLocation } from 'react-router-dom'
import { motion } from 'framer-motion'
import {
HomeIcon,
BellAlertIcon,
ChartBarIcon,
NewspaperIcon,
StarIcon,
ChartPieIcon,
Bars3Icon,
XMarkIcon,
} from '@heroicons/react/24/outline'
import clsx from 'clsx'
interface LayoutProps {
children: ReactNode
}
const navigation = [
{ name: 'Dashboard', href: '/', icon: HomeIcon },
{ name: 'Buy Signals', href: '/signals', icon: BellAlertIcon },
{ name: 'Stocks', href: '/stocks', icon: ChartBarIcon },
{ name: 'News', href: '/news', icon: NewspaperIcon },
{ name: 'Watchlist', href: '/watchlist', icon: StarIcon },
{ name: 'Analytics', href: '/analytics', icon: ChartPieIcon },
]
export default function Layout({ children }: LayoutProps) {
const location = useLocation()
const [sidebarOpen, setSidebarOpen] = useState(false)
return (
{/* Mobile sidebar backdrop */}
{sidebarOpen && (
setSidebarOpen(false)}
/>
)}
{/* Sidebar */}
{/* Main content */}
{/* Top bar */}
{/* Market status */}
{/* Time */}
{new Date().toLocaleTimeString()}
{/* Page content */}
{children}
)
}