import { t } from '../../i18n' import { useMedia } from '../../store' import ReviewComments from './ReviewComments' import ReviewText from './ReviewText' import Sheet from './Sheet' /** Commentaires sous un de mes avis, en plein écran (ouvert depuis une notification). */ export default function CommentsSheet({ authorId, itemId, title, onClose }: { authorId: string; itemId: string; title: string; onClose: () => void }) { const { items } = useMedia() // Mon avis tel qu'il est sur cet appareil (les commentaires viennent du serveur) const mine = items.find((i) => i.id === itemId) return (
{mine?.notes && (

{t('form.review')}

)}

{t('comments.title')}

) }