import React, { useState } from 'react' interface ErrorMessageProps { error: string } const ErrorMessage: React.FC = ({ error }) => { const [isExpanded, setIsExpanded] = useState(false) return (
⚠️ Error:
{error}
{error.length > 200 && ( )}
) } export default ErrorMessage