import Link from 'next/link' import { cn } from '@/lib/utils' interface AttnLineProps { children: React.ReactNode /** Optional inline action at the end of the sentence. */ action?: { label: string; href?: string; onClick?: () => void } className?: string } /** * Attention is one ochre sentence, not a banner (UI-migration convention 6): * a single 12.5px line in the attn tone with an optional embedded action * link. Max one per page. */ export function AttnLine({ children, action, className }: AttnLineProps) { return (
{children} {action && ( <> {' '} {action.href ? ( {action.label} ) : ( )} > )}
) }