"use client"; import { motion } from "framer-motion"; import { useLanguage } from "@/context/language-context"; import Link from "next/link"; import Image from "next/image"; import { Product } from "@/lib/products"; interface DetailInfoProps { product: Product; } export default function DetailInfo({ product }: DetailInfoProps) { const { t, language } = useLanguage(); const languageIndex = language === "uz" ? true : false; const handleScroll = (href: string) => { const element = document.querySelector(href); if (element) { element.scrollIntoView({ behavior: "smooth" }); } }; return (