import * as React from 'react';
import { JSXElementConstructor, ReactElement, useEffect, useLayoutEffect } from 'react';
import { useLocation} from 'react-router-dom'
export interface IAppProps {
  // MyElement:()=>JSX.Element
  // path:string
  meta?:{
    [k:string]:any
  }
  children?:any
}

export default function MxmRoute (props: IAppProps) {
  const {meta,children} = props;
  // const location = useLocation()
  // useEffect(()=>{
  //   console.log('changed',location); 
  // },[location])
  return (
    <>
      {children}
    </>
  );
}
