import React, { useRef, useCallback } from "react"; import PropTypes from "prop-types"; import DynamicComponent from "@/components/DynamicComponent"; import DesktopNavbar from "./DesktopNavbar"; import MobileNavbar from "./MobileNavbar"; import "./index.less"; export default function ApplicationLayout({ children }) { const mobileNavbarContainerRef = useRef(); const getMobileNavbarPopupContainer = useCallback(() => mobileNavbarContainerRef.current, []); return (
{children}
); } ApplicationLayout.propTypes = { children: PropTypes.node, }; ApplicationLayout.defaultProps = { children: null, };