import { lazy } from 'react'
import type { RouteObject } from 'react-router'

const ClinicProfilePage = lazy(() => import('./pages/ClinicProfilePage'))
const ClinicWorkspacePage = lazy(() => import('./pages/ClinicWorkspacePage'))
const UserReportPage = lazy(() => import('@/features/report/pages/UserReportPage'))
const PlanPage = lazy(() => import('@/features/plan/pages/PlanPage'))

export const clinicsRoutes: RouteObject[] = [
  // 공개 프로필 (손님/누구나)
  { path: 'clinic/:id', element: <ClinicProfilePage /> },

  // 유저 워크스페이스 (계약 병원 전용)
  { path: 'clinics/:clinicId', element: <ClinicWorkspacePage /> },
  { path: 'clinics/:clinicId/report/:id', element: <UserReportPage /> },
  { path: 'clinics/:clinicId/plan/:id', element: <PlanPage /> },
]
