"use client" import {Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle} from "@/shared/ui/dialog"; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/shared/ui/select"; import {Input} from "@/shared/ui/input"; import {Textarea} from "@/shared/ui/textarea"; import React from "react"; import {Button} from "@/shared/ui/button"; import {Service} from "@/shared/types/services"; import { useTranslations } from "next-intl"; interface ServiceModalProps { selectedService: Service | null; setSelectedService: (service: Service | null) => void; } const ServiceModal = ({selectedService, setSelectedService}: ServiceModalProps) => { const t = useTranslations("") return ( { if (!open) { setSelectedService(null) } } }> {selectedService?.name}