import { PropsWithChildren } from 'react';
import Link from 'next/link';
import styles from './layout.module.css';

const AdminLayout: React.FC<PropsWithChildren> = ({ children }) => {
  return (
    <>
      <nav className={styles.nav}>
        <ul className={styles.navList}>
          <li>
            <Link href="/dashboard" className={styles.navLink}>
              Dashboard
            </Link>
          </li>
          <li>
            <Link href="/users" className={styles.navLink}>
              Users
            </Link>
          </li>
        </ul>
      </nav>
      {children}
    </>
  );
};

export default AdminLayout;
