'use client';
import { useAuth } from '@/lib/auth-context';
import { DeptSection, CatSection } from '@/components/masters';

export default function MastersPage() {
  const { user } = useAuth();
  if (user?.role === 'employee') return <p>Not authorized.</p>;
  return (
    <div className="space-y-3">
      <h1 className="page-title">Masters</h1>
      <DeptSection />
      <CatSection />
    </div>
  );
}
