'use client'; import React, {useContext} from "react"; import {ThemeContext} from "@/components/provider/ThemeProvider"; import {themeColors} from "@/components/Helper/ThemeColors"; import {motion} from "framer-motion"; type SmallHeroProps = { title: string; subtitle?: string; backgroundImage?: string; blurBackground?: boolean; }; const SmallHero = ({title, subtitle, backgroundImage, blurBackground}: SmallHeroProps) => { const {theme} = useContext(ThemeContext); const colors = themeColors[theme]; const primaryTextColor = backgroundImage ? "#ffffff" : colors.primaryText; const secondaryTextColor = backgroundImage ? "rgba(255, 255, 255, 0.8)" : "#6B7280"; // Tailwind gray-500 return (
{backgroundImage && blurBackground && (
)} {/* Text content */}
{title} {subtitle && ( {subtitle} )}
); }; export default SmallHero;