import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
import { useState } from 'react';
import { useIsomorphicLayoutEffect } from '../hooks/index';
export function useInnerVisible(outerVisible) {
  var _useState = useState(outerVisible),
    _useState2 = _slicedToArray(_useState, 2),
    innerVisible = _useState2[0],
    setInnerVisible = _useState2[1];
  useIsomorphicLayoutEffect(function () {
    setInnerVisible(outerVisible);
  }, [outerVisible]);
  return innerVisible;
}