import { usePersonalityDirectoryPage } from '@/business/personality/directoryHooks';
import { PersonalityDirectoryView } from '@/components/personality-directory/PersonalityDirectoryView';

interface PersonalityDirectoryProps {
  onBackToQuiz: () => void;
  highlightType?: string | null;
}

const PersonalityDirectory = ({ onBackToQuiz, highlightType }: PersonalityDirectoryProps) => {
  const page = usePersonalityDirectoryPage(highlightType);

  return (
    <PersonalityDirectoryView
      page={page}
      onBackToQuiz={onBackToQuiz}
      highlightType={highlightType}
    />
  );
};

export default PersonalityDirectory;
