'use client';

import { useState } from 'react';
import Forum from '@/components/Dashboard/doctor/Forum';
import { useAuthStore } from '@/stores/authStore';

export default function ForumPage() {
  const user = useAuthStore((state) => state.user);

  return (
    <main className="p-4 space-y-6">
      {!user?.profile?.isVerified ? (
        <div className="bg-yellow-100 text-yellow-800 border border-yellow-300 p-4 rounded text-center">
          <p className="text-sm font-medium">
            Your profile is not yet verified. Please complete the verification process to access the forum.
          </p>
        </div>
      ) : (
        <Forum />
      )}
    </main>
  );
}
