"use client"; import { useTranslations } from "next-intl"; import Image from "next/image"; interface KeyFeaturesProps { isInToolPage?: boolean; // Whether it is in the tool page (e.g. homepage) className?: string; // Custom style class showTitle?: boolean; // Whether to display the title titleClassName?: string; // Title style class } export default function KeyFeatures({ isInToolPage = false, className = "", showTitle = true, titleClassName = "", }: KeyFeaturesProps) { const t = useTranslations("text.KeyFeatures"); // Set container styles const containerClasses = `container mx-auto px-4 py-8 ${className}`; const defaultTitleClasses = "font-semibold mb-6"; const titleClasses = `${defaultTitleClasses} ${titleClassName}`.trim(); return (
{showTitle && (isInToolPage ? (

{t("h2")}

) : (

{t("h2")}

))}

Icon {t("h3_1")}

{t("h3_1_P")}

Icon {t("h3_2")}

{t("h3_2_P")}

Icon {t("h3_3")}

{t("h3_3_P")}

Icon {t("h3_4")}

{t("h3_4_P")}

Icon {t("h3_5")}

{t("h3_5_P")}

Icon {t("h3_6")}

{t("h3_6_P")}

); }