import { AdminsPage } from "@/components/features/admins/AdminsPage";
import { useRoleAccess } from "@/hooks/useRoleAccess";
import { AccessDenied } from "@/components/features/auth/AccessDenied";

const Admins = () => {
  const { isManager } = useRoleAccess();
  if (!isManager) return <AccessDenied />;
  return <AdminsPage />;
};

export default Admins;
