import * as c from "react";
const i = ({
  autoFocus: o,
  openView: u
}) => {
  const [a, e] = c.useState(o ? u : null), l = c.useCallback((s) => (n) => {
    e(n ? s : (t) => s === t ? null : t);
  }, []);
  return {
    focusedView: a,
    setFocusedView: l
  };
};
export {
  i as useFocusManagement
};
