'use client' import React from 'react' interface DetectorType { detector_id: number name: string object: string status: string checked: boolean type: string location: string floor: number } interface DetectorMenuProps { detector: DetectorType isOpen: boolean onClose: () => void getStatusText: (status: string) => string } const DetectorMenu: React.FC = ({ detector, isOpen, onClose, getStatusText }) => { if (!isOpen) return null return (
{/* Header */}

Датч.{detector.name}

{/* Detector Information Table */}
Маркировка по проекту
{detector.name}
Тип детектора
{detector.type}
Местоположение
{detector.location}
Статус
{getStatusText(detector.status)}
Временная метка
Сегодня, 14:30
Вчера
{/* Close Button */}
) } export default DetectorMenu