interface Props { params: Record; } export default function Lang(props: Props) { return props.params.lang ?
Hello {props.params.lang}
:
Hello
; }