import { Link } from "react-router"; interface TeamNameDisplayProps { teamName: string; ownerName?: string | null; href?: string; } /** * Displays a team name with optional owner username below it. * If href is provided, the team name is rendered as a link. */ export function TeamNameDisplay({ teamName, ownerName, href }: TeamNameDisplayProps) { return (
{href ? ( {teamName} ) : (

{teamName}

)} {ownerName && (

{ownerName}

)}
); }