"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface HeroButton { label: string; href: string; } export interface HeroProps extends React.HTMLAttributes { title: string; highlight?: string; description?: string; primaryAction?: HeroButton; secondaryAction?: HeroButton; marqueeItems?: string[]; } export function Hero({ title, highlight, description, primaryAction, secondaryAction, marqueeItems, className, ...props }: HeroProps) { const segments = highlight ? title.split(highlight) : [title]; return (

Ticket stub ui

{highlight ? ( <> {segments[0]} {highlight} {segments.slice(1).join(highlight)} ) : ( title )}

{description && (

{description}

)}
{primaryAction && ( {primaryAction.label} )} {secondaryAction && ( {secondaryAction.label} )}
{marqueeItems && marqueeItems.length > 0 && ( )}
); }