import type { ReactNode } from "react";
import { Cog, Lightbulb, ListChecks } from "lucide-react";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { cn } from "@/lib/utils";
interface Feature {
id: string;
icon: ReactNode;
heading: string;
description: string;
image: string;
imageAlt: string;
url: string;
isDefault: boolean;
}
const defaultFeatures: Feature[] = [
{
id: "feature-1",
heading: "موجودی انبار",
icon: ,
description:
"محصولات را دستهبندی کنید و ویژگیها را برای جستجوی بهتر ساختاردهی کنید.",
image: "/block-media/shadcnblocks/block/placeholder-1.svg",
imageAlt: "مدیریت سفارش",
url: "https://ShadcnBlocks",
isDefault: true,
},
{
id: "feature-2",
icon: ,
heading: "بازگشت مشتری",
description:
"پرداخت سریع و امن اعتماد مشتری را در لحظه خرید حفظ میکند.",
image: "/block-media/shadcnblocks/block/placeholder-2.svg",
imageAlt: "داشبورد فروش",
url: "https://ShadcnBlocks",
isDefault: false,
},
{
id: "feature-3",
icon: ,
heading: "صفحه فرود",
description:
"وضعیت ارسال را شفاف نشان دهید و تماسهای پشتیبانی را کم کنید.",
image: "/block-media/shadcnblocks/block/placeholder-3.svg",
imageAlt: "پنل فروشگاه آنلاین",
url: "https://ShadcnBlocks",
isDefault: false,
},
];
interface Feature51Props {
features?: Feature[];
className?: string;
}
const Feature51 = ({
features = defaultFeatures,
className,
}: Feature51Props) => {
const defaultTab =
features.find((tab) => tab.isDefault)?.id || features[0].id;
return (
{features.map((tab) => (
{tab.icon && (
{tab.icon}
)}
{tab.heading}
{tab.description}
))}
{features.map((tab) => (
))}
);
};
export { Feature51 };