import Image from "next/image";
type PageHeroProps = {
title: string;
titleEn?: string;
breadcrumb?: { label: string; href: string }[];
};
export function PageHero({ title, titleEn, breadcrumb }: PageHeroProps) {
return (
{breadcrumb ? (
) : null}
{title}
{titleEn ? (
{titleEn}
) : null}
);
}
type CatalogCardProps = {
href: string;
image: string;
title: string;
titleEn: string;
description: string;
};
export function CatalogCard({
href,
image,
title,
titleEn,
description,
}: CatalogCardProps) {
return (
{titleEn}
{description}
بیشتر بدانید
);
}
type ContentSectionProps = {
title: string;
titleEn?: string;
image?: string;
imageAlt?: string;
children: React.ReactNode;
reverse?: boolean;
};
export function ContentSection({
title,
titleEn,
image,
imageAlt,
children,
reverse,
}: ContentSectionProps) {
return (
*:first-child]:order-2" : ""
}`}
>
{image ? (
) : null}
{title}
{titleEn ? (
{titleEn}
) : null}
{children}
);
}
export function SpecList({ items }: { items: string[] }) {
return (
مشخصات فنـــــی
{items.map((item) => (
-
{item}
))}
);
}
export function UpdatingNotice() {
return (
);
}