import { Button } from '@/components/ui/button'
import { Eye } from 'lucide-react'
import { useTranslation } from 'react-i18next'

export default function MutedNote({ show }: { show: () => void }) {
  const { t } = useTranslation()

  return (
    <div className="my-4 flex flex-col items-center gap-2 font-medium text-muted-foreground">
      <div>{t('This user has been muted')}</div>
      <Button
        onClick={(e) => {
          e.stopPropagation()
          show()
        }}
        variant="outline"
      >
        <Eye />
        {t('Temporarily display this note')}
      </Button>
    </div>
  )
}
