import * as React from "react";

export const useSafeLayoutEffect =
  typeof document !== "undefined" ? React.useLayoutEffect : React.useEffect;
