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

1 year ago
  1. import React from 'react'
  2. import { createLazyRoute, Outlet } from '@tanstack/react-router'
  3. interface ITreePageLayoutProps {
  4. children: React.ReactNode
  5. }
  6. const TreePageLayout: React.FC<ITreePageLayoutProps> = (props) => {
  7. return (
  8. <>
  9. {props.children}
  10. <Outlet/>
  11. </>
  12. )
  13. }
  14. export const GenRoute = (id: string) => createLazyRoute(id)({
  15. component: TreePageLayout,
  16. })