// components/HeroSection.tsx import React from "react"; import Image from "next/image"; import Button from "@/components/ui/Button"; // Use the updated Button type HeroSectionProps = { title: React.ReactNode; // Allow JSX like
subtitle: string; buttonText: string; buttonHref: string; imageUrl?: string; // Optional image URL // videoUrl?: string; // Optional video URL }; const HeroSection: React.FC = ({ title, subtitle, buttonText, //buttonHref, imageUrl = "/hero-bg-2.jpg", // Default background image }) => { return (
{" "} {/* Adjusted background bg-gradient-to-b from-black/10 to-black/40*/} {/* Background Image/Video */}
{" "} {/* Adjusted opacity */} {imageUrl && ( Hero background )} {/* TODO: Add video support if needed */}
{/* Overlay for better text contrast */}
{/* Content */}
{" "} {/* Use container */}

{title}

{subtitle}

); }; export default HeroSection;