import Link from "next/link";
const groups=[
  ["UTAMA",[["Dashboard","/admin"],["Artikel","/admin/artikel"],["Program","/admin/program"],["Galeri","/admin/galeri"],["Donasi","/admin/donasi"]]],
  ["LOCAL SEO",[["SEO Dashboard","/admin/seo"],["Jawa Tengah","/admin/seo/jawa-tengah"],["Semarang","/admin/seo/semarang"],["Keyword Manager","/admin/seo/keyword"],["Internal Link","/admin/seo/internal-link"],["Indexing Monitor","/admin/seo/indexing"]]],
  ["PENGATURAN",[["Profil Panti","/admin/pengaturan/profil"],["Website","/admin/pengaturan/website"],["Pengguna","/admin/pengaturan/pengguna"]]]
] as const;
export default function AdminShell({children}:{children?:any}){return <div className="admin-layout"><aside className="sidebar"><Link href="/admin" className="admin-brand"><span>AJ</span><div><b>CMS Al Jannah</b><small>Next.js SEO CMS</small></div></Link>{groups.map(([label,items])=><div className="nav-group" key={label}><small>{label}</small>{items.map(([name,url])=><Link href={url} key={url}>{name}</Link>)}</div>)}<Link className="view-site" href="/">↗ Lihat Website</Link><a className="view-site" href="/api/auth/logout">Keluar</a></aside><main className="admin-main"><div className="admin-top"><div><b>CMS Panti Asuhan Al Jannah Semarang</b><small>SEO-first • Jawa Tengah</small></div><div className="avatar">A</div></div><div className="admin-content">{children}</div></main></div>}
