useLayoutEffect on the client and useEffect on the server, so layout measurements never log the server-rendering warning.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-isomorphic-layout-effect.json"