import { useToast } from '@react-aria/toast' import { useRef } from 'react' import { StyledToastContainer, type ToastProps } from './Toast' import { HStack } from '@/styled-system/jsx' import { useTranslation } from 'react-i18next' export function ToastMuted({ state, ...props }: Readonly) { const { t } = useTranslation('notifications') const ref = useRef(null) const { toastProps, contentProps } = useToast(props, state, ref) const participant = props.toast.content.participant if (!participant) return return ( {t('muted', { name: participant.name })} ) }