import { FC , ReactNode } from 'react' ; import PropTypes from 'prop-types' ; import { Outlet } from 'react-router-dom' ; interface BaseLayoutProps { children ? : ReactNode ; } const BaseLayout = ( { children } ) => { return < > { children || < Outlet />}</ > ; } ; BaseLayout . propTypes = { children : PropTypes . node } ; export default BaseLayout ;