'use client' const isClient = typeof window !== 'undefined' export default function Component() { return (

{isClient ? 'client' : 'server'}

) }