import { Suspense } from 'react' import { useParams, Link } from 'react-router-dom' import { useQuery } from '@tanstack/react-query' import { getAdminComponent } from '../../registry' import { api } from '../../../api/client' export default function AdminFeaturePage() { const { slug } = useParams() const Component = getAdminComponent(slug) // 메뉴 정보 조회 (없는 기능 안내용) const { data: menus = [] } = useQuery({ queryKey: ['admin', 'menus'], queryFn: () => api('/api/admin/menus').catch(() => []), }) const menu = menus.find((m) => (m.url || '').replace(/^\/+/, '').split('/')[0] === slug) if (!Component) { return (
{menu.description}
이 기능에는 관리 페이지가 없습니다
features/{slug}/{slug.split('-').map((s) => s[0].toUpperCase() + s.slice(1)).join('')}Admin.jsx
메뉴 정보 편집 →