connect links to a tegs

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-11-08 11:11:44 +05:00
parent 549535b471
commit 9f047aecb4
7 changed files with 28 additions and 21 deletions

View File

@@ -5,11 +5,13 @@ import Image from "next/image";
import Link from "next/link";
import Text from "../lib_components/text";
import { motion } from "framer-motion";
import { useParams } from "next/navigation";
export default function SliderCard({ data }: { data: ProductTypes }) {
const router = useParams();
return (
<Link
href={data.path}
href={`/${router.lang}/${data.path}`}
id="news_slider_card"
className="group hover:cursor-pointer block"
>