'use client'; import { type ServiceFieldsFragment } from '@repo/graphql/types'; import { Badge } from '@repo/ui/components/ui/badge'; import { cn } from '@repo/ui/lib/utils'; import { getMinutes } from '@repo/utils/datetime-format'; type ServiceCardProps = Pick; export function ServiceCard({ active, duration, name }: Readonly) { return (
{name} {active ? ( {getMinutes(duration) + ' мин'} ) : ( Закрыта )}
); }