import type { {{ENTITY}} } from '@/types'; import { use{{ENTITY}} } from '@/hooks/use{{ENTITY}}'; import { Spinner } from '@/components/ui/Spinner'; import { ErrorMessage } from '@/components/ui/ErrorMessage'; import { cn } from '@/lib/utils'; interface {{COMPONENT_NAME}}Props { {{ENTITY_LOWER}}Id: string; className?: string; } /** * {{COMPONENT_NAME}} component * * @description Displays {{ENTITY_LOWER}} information * @example * ```tsx * <{{COMPONENT_NAME}} {{ENTITY_LOWER}}Id="123" /> * ``` */ export const {{COMPONENT_NAME}}: React.FC<{{COMPONENT_NAME}}Props> = ({ {{ENTITY_LOWER}}Id, className, }) => { // Custom hook handles business logic const { data: {{ENTITY_LOWER}}, isLoading, error } = use{{ENTITY}}({{ENTITY_LOWER}}Id); // Loading state if (isLoading) { return (
); } // Error state if (error) { return (
); } // Not found state if (!{{ENTITY_LOWER}}) { return (

{{ENTITY}} not found

); } // Success state - render component return (
{/* TODO: Add component content */}

{/* {{ENTITY_LOWER}}.field */}

); };