// import { useTranslations } from "next-intl"; // import Image from "next/image"; // import Link from "next/link"; // interface CatalogProps { // image: string; // title: string; // slug: string; // description: string; // id:string; // } // export default function CatalogCard({ // image, // title, // slug, // description, // id, // }: CatalogProps) { // const t = useTranslations(); // return ( // //
//

// {title} //

//

// {t(`${description}`)} //

// image //
// // ); // } // bg-[#444242] "use client"; import { useLocale, useTranslations } from "next-intl"; import Image from "next/image"; import Link from "next/link"; import { ArrowUpRight } from "lucide-react"; import { useCategory } from "@/zustand/useCategory"; import { useSubCategory } from "@/zustand/useSubCategory"; interface CatalogProps { id: number; image: string; title: string; description: string; have_sub_category: boolean; } export default function CatalogCard({ image, title, description, id, have_sub_category, }: CatalogProps) { const t = useTranslations(); const locale = useLocale(); const setCategory = useCategory((state) => state.setCategory); const clearSubCategory = useSubCategory((state) => state.clearSubCategory); const item = { image: image, name: title, description: description, id: id, have_sub_category: have_sub_category, }; const updateZustands = () => { setCategory(item); clearSubCategory(); }; const navigateLink = have_sub_category ? `/${locale}/catalog_page/subCategory?category=${id}` : `/${locale}/catalog_page/products?category=${id}`; return ( {/* Background glow effect */}
{/* Decorative corner accent */}
{/* Content container */}
{/* Title section */}

{title}

{/* Description */}

{description}

{/* Image container with elegant frame */}
{/* Animated gradient overlay */}
{/* Image */}
{title}
{/* Hover shimmer effect */} {/*
*/}
{/* Bottom accent bar */}
{/* Subtle noise texture overlay */}
); }