import { useSafetyQuizPage } from '@/business/safety-quiz/hooks';
import { SafetyQuizView } from '@/components/safety-quiz/SafetyQuizView';
import type { UserRole } from '@/shared/types/app';

interface QBSSafetyProps {
  userRole: UserRole;
}

const QBSSafety = ({ userRole }: QBSSafetyProps) => {
  const page = useSafetyQuizPage(userRole);

  return <SafetyQuizView page={page} />;
};

export default QBSSafety;
