// src/layouts/DashboardLayout.tsx
import { type ReactNode } from "react";
import { motion } from "framer-motion";
import { FaHome, FaUser, FaCog, FaSignOutAlt } from "react-icons/fa";
import { Link, Outlet } from "react-router-dom";
export default function DashboardLayout() {
return (
{/* Sidebar */}
MyDashboard
} label="Logout" />
{/* Main content */}
{/* Top Navbar */}
Dashboard
Welcome back!
{/* Content area */}
);
}
interface SidebarLinkProps {
to: string;
icon: ReactNode;
label: string;
}
function SidebarLink({ to, icon, label }: SidebarLinkProps) {
return (
{icon}
{label}
);
}