diff --git a/src/app/[locale]/toys/[id]/page.tsx b/src/app/[locale]/toys/[id]/page.tsx index 964d2f7..8623ee5 100644 --- a/src/app/[locale]/toys/[id]/page.tsx +++ b/src/app/[locale]/toys/[id]/page.tsx @@ -3,15 +3,12 @@ import Image from 'next/image'; import { getToyById } from '@/data/operations'; import type { Toy } from '@/types'; import { Button } from '@/components/ui/button'; -import { Calendar } from '@/components/ui/calendar'; import { ArrowLeft, DollarSign, MapPin } from 'lucide-react'; import Link from 'next/link'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; import { getI18n, getStaticParams as getLocaleStaticParams } from '@/locales/server'; import type { Locale } from '@/locales/server'; -import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; -import { addDays, parseISO } from 'date-fns'; import { getAllToys } from '@/data/operations'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { ShoppingBag } from 'lucide-react'; @@ -41,12 +38,6 @@ export default async function ToyPage({ params }: ToyPageProps) { const placeholderHint = toy.category.toLowerCase() || "toy detail"; - const disabledDates = toy.unavailableRanges.map(range => { - const from = parseISO(range.startDate); - const to = parseISO(range.endDate); - return { from, to }; - }); - return (
@@ -131,23 +122,6 @@ export default async function ToyPage({ params }: ToyPageProps) {
- - - - {t('toy_details.availability_calendar_title')} - - - - -

- {t('toy_details.calendar_note')} -

-