import { useEffect, useRef } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
var Container = function Container(_ref) {
  var onMount = _ref.onMount;
  var ref = useRef(null);
  var onMountRef = useRef(onMount);
  useEffect(function () {
    onMountRef.current = onMount;
  }, [onMount]);
  useEffect(function () {
    return onMountRef.current(ref.current);
  }, []);
  return /*#__PURE__*/_jsx("div", {
    ref: ref,
    style: {
      height: '100%'
    }
  });
};
export default Container;