import { avatarColor } from "~/lib/avatar-colors"; interface TeamOwnerBadgeProps { teamName: string; ownerName?: string; align?: "left" | "right"; } export function TeamOwnerBadge({ teamName, ownerName, align = "left", }: TeamOwnerBadgeProps) { const initials = teamName .split(/\s+/) .filter(Boolean) .slice(0, 2) .map((w) => w[0].toUpperCase()) .join("") || "?"; const color = avatarColor(teamName); const avatar = (
{initials}
); const text = (

{teamName}

{ownerName && (

{ownerName}

)}
); return (
{avatar} {text}
); }