import { className } from 'lib/css' import { FC } from 'preact/compat' import Icon from 'ui/components/layout/icon' import { useGeneratedId } from 'ui/hooks/utility-hooks' type ChatStatusProps = { handleClose: () => void title?: string closeButtonText?: string srCloseButtonText?: string id: string } const ChatStatus: FC = ({ children, handleClose, title, closeButtonText, srCloseButtonText, id, }) => { const headingId = useGeneratedId() return (
{title ? (

{title}

) : null} {children}
{typeof handleClose === 'function' && ( )}
) } export default ChatStatus