"use client"; import React, { memo } from "react"; import TextAnimation from "@/components/text/TextAnimation"; import Button from "@/components/button/Button"; import { cls } from "@/lib/utils"; import { getButtonProps } from "@/lib/buttonUtils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { ButtonConfig } from "@/types/button"; interface TextAboutProps { title: string; buttons?: ButtonConfig[]; useInvertedBackground: "noInvert" | "invertDefault" | "invertCard"; ariaLabel?: string; className?: string; containerClassName?: string; titleClassName?: string; buttonContainerClassName?: string; buttonClassName?: string; buttonTextClassName?: string; } const TextAbout = ({ title, buttons, useInvertedBackground, ariaLabel = "About section", className = "", containerClassName = "", titleClassName = "", buttonContainerClassName = "", buttonClassName = "", buttonTextClassName = "", }: TextAboutProps) => { const theme = useTheme(); return (
{buttons && buttons.length > 0 && (
{buttons.slice(0, 2).map((button, index) => (
)}
); }; TextAbout.displayName = "TextAbout"; export default memo(TextAbout);