import { getAvatarColor } from "~/lib/color-hash"; interface TeamOwnerBadgeProps { teamName: string; ownerName?: string; align?: "left" | "right"; // right = avatar on the right side for the right column } export function TeamOwnerBadge({ teamName, ownerName, align = "left", }: TeamOwnerBadgeProps) { const initial = teamName.charAt(0).toUpperCase(); const colorClass = getAvatarColor(teamName); const avatar = (
{teamName}
{ownerName && ({ownerName}
)}