import { IconCircleX } from '@tabler/icons-react'; import { FC } from 'react'; import { ErrorMessage } from '@/types/error'; interface Props { error: ErrorMessage; } export const ErrorMessageDiv: FC = ({ error }) => { return (
{error.title}
{error.messageLines.map((line, index) => (
{' '} {line}{' '}
))}
{error.code ? Code: {error.code} : ''}
); };