You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
435 B
20 lines
435 B
import React from 'react'
|
|
import { createLazyRoute, Outlet } from '@tanstack/react-router'
|
|
|
|
interface ITreePageLayoutProps {
|
|
children: React.ReactNode
|
|
|
|
}
|
|
|
|
const TreePageLayout: React.FC<ITreePageLayoutProps> = (props) => {
|
|
return (
|
|
<>
|
|
{props.children}
|
|
<Outlet/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export const GenRoute = (id: string) => createLazyRoute(id)({
|
|
component: TreePageLayout,
|
|
})
|