"use client";
import type { Hero as HeroType, HeroAction } from "../../node/types";
import { cn } from "../../node/utils";
import { renderLucideIcon } from "../Lucide";
import { getSocialIcon } from "../Social";
interface HeroProps {
hero: HeroType;
className?: string;
}
interface ActionButtonProps {
action: HeroAction;
}
function isExternalLink(link: string): boolean {
return /^https?:\/\//.test(link);
}
function renderActionButtonIcon(iconName: string | undefined, className?: string) {
if (!iconName) return null;
// Try Lucide icon first
const lucideIcon = renderLucideIcon(iconName, className);
if (lucideIcon) return lucideIcon;
// Fallback to social icon
const SocialIcon = getSocialIcon(iconName);
if (SocialIcon) return
{tagline}
}{description}
)} {actions && actions.length > 0 && (