"use client";
let react = require("react");
//#region src/components/frame/frame-content.tsx
var FrameContent = (props) => {
	const { onMount, onUnmount, children } = props;
	const mountedRef = (0, react.useRef)(false);
	const calledRef = (0, react.useRef)(false);
	(0, react.useEffect)(() => {
		if (!mountedRef.current && !calledRef.current) {
			onMount?.();
			mountedRef.current = true;
			calledRef.current = true;
		}
		return () => {
			if (mountedRef.current) {
				onUnmount?.();
				mountedRef.current = false;
			}
		};
	}, []);
	return children;
};
//#endregion
exports.FrameContent = FrameContent;
