import { memo } from 'react' import type { FC, ReactNode } from 'react' <% if(data.children.length>0){ %> import { useOutlet,useLocation } from 'react-router-dom' import { SwitchTransition, CSSTransition } from 'react-transition-group' <% }%> interface Iprops { children?: ReactNode } const <%= data.PageName %>: FC = () => { <% if(data.children.length>0){ %> const currentOutlet = useOutlet() const location = useLocation() <% }%> return (
<%= data.PageName %> <% if(data.children.length>0){ %> { currentOutlet&& {currentOutlet} } <% }%>
) } export default memo(<%= data.PageName %>)