import { useEffect } from 'react'; import { Link } from 'react-router-dom'; import { PencilIcon } from '@heroicons/react/24/outline'; import { useAuthStore } from '../stores/authStore'; import SettingsLayout from '../components/layout/SettingsLayout'; import ClinicDoctorsManager from '../components/ClinicDoctorsManager'; /** * ClinicDoctorsPage — the clinic-owner settings tab for managing the clinic's * doctors (list, invite, detach) and pending invitations. Renders inside the * settings shell instead of jumping to the standalone admin ClinicDetailPage. * Clinic-info editing (name, gallery, addresses, specialties) stays on the full * detail page, reachable via the "ویرایش اطلاعات کلینیک" link. */ function ClinicDoctorsContent() { const { dbUuid, fetchMe } = useAuthStore(); useEffect(() => { if (!dbUuid) fetchMe(); }, [dbUuid, fetchMe]); if (!dbUuid) { return (
در حال بارگذاری اطلاعات کلینیک...