"use client"; import { memo } from "react"; import MediaContent from "@/components/shared/MediaContent"; 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 ParallaxAboutProps { imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; buttons?: ButtonConfig[]; ariaLabel?: string; className?: string; mediaClassName?: string; buttonContainerClassName?: string; buttonClassName?: string; buttonTextClassName?: string; } const ParallaxAbout = ({ imageSrc, videoSrc, imageAlt, videoAriaLabel, buttons, ariaLabel = "About section", className = "", mediaClassName = "", buttonContainerClassName = "", buttonClassName = "", buttonTextClassName = "", }: ParallaxAboutProps) => { const theme = useTheme(); return (
{buttons && buttons.length > 0 && (
{buttons.slice(0, 2).map((button, index) => (
)}
); }; ParallaxAbout.displayName = "ParallaxAbout"; export default memo(ParallaxAbout);