'use client' import { useState, useRef } from 'react'; import { PieChartComponent } from '@/app/components/PieChartComponent'; import { useTranslations } from 'next-intl'; import Link from 'next/link'; import { useClickOutside } from '@/app/hooks/useClickOutside'; const data = [ { name: 'images', value: 33, color: '#f08c00' }, { name: 'videos', value: 50, color: '#2f9e44' }, { name: 'audios', value: 25, color: '#1971c2' }, ]; /* нужно что бы включать выключать кнопки добавления маркировок */ const totalFiles = 1; export default function ProtectionOverview() { const [isOpen, setIsOpen] = useState(false); const t = useTranslations('Global'); const [openDropDownList, setOpenDropDownList] = useState(false); const dropDownList = useRef(null); useClickOutside(dropDownList, () => { setOpenDropDownList(false) }); return (
{t('current-status-of')}