import { usePoliciesPage } from '@/business/policies/pageHooks';
import { PoliciesView } from '@/components/policies/PoliciesView';
import type { UserRole } from '@/shared/types/app';

interface HandbookPolicyProps {
  userRole: UserRole;
}

const HandbookPolicy = ({ userRole }: HandbookPolicyProps) => {
  const page = usePoliciesPage(userRole);

  return <PoliciesView state={page.state} actions={page.actions} />;
};

export default HandbookPolicy;
