import { AlertCircle, Building2, Calendar as CalendarIcon, Droplets, Gauge, Settings, Thermometer, } from 'lucide-react' import { Button } from 'shared/ui/button' import { Card, CardContent } from 'shared/ui/card' import { VerificationConditionsConfig } from './types' interface VerificationConditionsPreviewProps { config: VerificationConditionsConfig onChange?: (config: VerificationConditionsConfig) => void } const ConditionSkeleton = ({ index, icon: Icon, name, unit, }: { index: number icon: any name: string unit: string }) => (
{name}
— {unit}
) // Моковые условия поверки const mockConditions = [ { name: 'Температура', unit: '°C', icon: Thermometer }, { name: 'Влажность', unit: '%', icon: Droplets }, { name: 'Давление', unit: 'кПа', icon: Gauge }, { name: 'Освещенность', unit: 'лк', icon: AlertCircle }, { name: 'Вибрация', unit: 'м/с²', icon: AlertCircle }, { name: 'Магнитное поле', unit: 'А/м', icon: AlertCircle }, { name: 'Электромагнитное поле', unit: 'В/м', icon: AlertCircle }, ] export function VerificationConditionsPreview({ config, onChange, }: VerificationConditionsPreviewProps) { const conditionsToShow = mockConditions.slice(0, 7) const selectedDate = config.selectedDate || new Date().toISOString().split('T')[0] if (!config.selectedLaboratoryId) { return (

Лаборатория не выбрана

) } return (
{/* Информация о лаборатории и дате */}
Лаборатория
{new Date(selectedDate).toLocaleDateString('ru-RU')}
{/* Общий статус с кнопкой настроить */}
Данные не внесены
{/* Моковые условия */}
{conditionsToShow.map((condition, index) => ( ))}
) }