{"version":3,"file":"useIsomorphicLayoutEffect.mjs","sources":["../../../src/hooks/useIsomorphicLayoutEffect.ts"],"sourcesContent":["import { useEffect, useLayoutEffect } from 'react'\n\n/**\n * @description This hook is used to handle the layout effect in a way that is compatible with SSR.\n * In Server Environments, this hook will use `useEffect` instead of `useLayoutEffect`.\n * @see https://react.dev/reference/react/useLayoutEffect#troubleshooting\n */\nexport const useIsomorphicLayoutEffect =\n  typeof window !== 'undefined' ? useLayoutEffect : useEffect\n"],"names":["useIsomorphicLayoutEffect","window","useLayoutEffect","useEffect"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMA,yBAAyB,GACpC,OAAOC,MAAM,KAAK,WAAW,GAAGC,eAAe,GAAGC;;;;"}