import { Box, Link, Typography } from '@mui/material' import { ErrorOutline } from '@mui/icons-material' import type { ChatErrorMessageProps } from '../types' import { styles } from './styles' export function ChatErrorMessage({ errors, icon, actions, sx, }: ChatErrorMessageProps) { return ( {icon ?? } {errors.map((error, index) => ( {error} ))} {actions?.length ? ( {(actions ?? []).map((action, index) => ( {index > 0 && ( · )} {action.label} ))} ) : null} ) }