import { Box, IconButton, Typography } from '@mui/material' import { Close } from '@mui/icons-material' import type { ChatHeaderProps } from '../types' import { styles } from './styles' export function ChatHeader({ leftSlot, title, rightSlot, onClose, sx, }: ChatHeaderProps) { return ( {leftSlot} {title} {rightSlot} {onClose && ( )} ) }