// 에러 메시지 컴포넌트 // API 오류 메시지 일관된 UI로 표시 import React from 'react'; import { AlertCircle } from 'lucide-react'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; interface ErrorMessageProps { title?: string; message: string; onRetry?: () => void; className?: string; } export const ErrorMessage: React.FC = ({ title = '오류 발생', message, onRetry, className = '' }) => { return ( {title}

{message}

{onRetry && ( )}
); };