import type { Metadata } from 'next';
import type { ReactNode } from 'react';

import Link from 'next/link';

import style from '@/styles/admin.module.scss';

export const metadata: Metadata = {
  title: 'Admin — Catherine League',
  robots: 'noindex, nofollow',
};

export default function AdminRootLayout({ children }: { children: ReactNode }) {
  return (
    <div className={style.wrap}>
      <nav className={style.nav}>
        <Link href="/">← Site</Link>
        <Link href="/admin/login">Login</Link>
        <Link href="/admin/register">Register</Link>
        <Link href="/admin">Dashboard</Link>
      </nav>
      {children}
    </div>
  );
}
