"use client"; import { cn } from "@/app/lib/cn"; import productImage from "@/assets/images/product_image.png"; import Image from "next/image"; import { useState, type FC } from "react"; import { PRODUCT_DESCRIPTION_CONTENT, PRODUCT_TABS, type ProductTabId } from "../constants"; const ProductTabs: FC = () => { const [activeTab, setActiveTab] = useState("description"); return (
{PRODUCT_TABS.map((tab) => { const isActive = activeTab === tab.id; return ( ); })}
{activeTab === "description" && } {activeTab !== "description" &&

محتوای این بخش به‌زودی اضافه می‌شود.

}
); }; const DescriptionPanel: FC = () => { const { title, bullets, sections } = PRODUCT_DESCRIPTION_CONTENT; return (

{title}

    {bullets.map((item) => (
  • {item}
  • ))}
{sections.map((section) => (

{section.title}

{section.body}

))}
); }; export default ProductTabs;