import { useLayoutEffect, useEffect } from 'react';
import { canUseDOM } from '../utils/canUseDOM.js';

/**
 * Runs effect safely on server.
 */
var useIsomorphicLayoutEffect = canUseDOM ? useLayoutEffect : useEffect;

export { useIsomorphicLayoutEffect };
