import { Tooltip } from '../shared/Tooltip'
interface SourceBadgeProps {
icon: React.ComponentType<{ size?: number; style?: React.CSSProperties }>
label: string
/** What the badge links to (plan, transport, booking); its tooltip. */
kind?: string
}
/** Where a file is attached: a place, a booking, a note. */
export function SourceBadge({ icon: Icon, label, kind }: SourceBadgeProps) {
const badge = (
{label}
)
return kind ? {badge} : badge
}