Switch renders the first matching Match child in order. Each Match is evaluated with the same truthiness rules as Show, and fallback is rendered when nothing matches.
function Switch(props: {
children: React.ReactNode;
fallback?: React.ReactNode;
}): React.ReactNode;
function Match<T>(props: {
when: T | null | undefined | false;
children: React.ReactNode | ((value: NonNullable<T>) => React.ReactNode);
}): React.ReactNode;