import { ReactNode } from 'react'; import { Box } from './Box'; import { Heading } from './Heading'; import { Stack } from './Stack'; import { Text } from './Text'; interface LeagueHeaderProps { name: string; description?: string | null; logoUrl: string; sponsorContent?: ReactNode; statusContent?: ReactNode; } export function LeagueHeader({ name, description, logoUrl, sponsorContent, statusContent, }: LeagueHeaderProps) { return ( {`${name} {name} {sponsorContent && ( by {sponsorContent} )} {statusContent} {description && ( {description} )} ); }