feat(packages/tuono-(router|fs-router-vite-plugin)): replace __route with __layout (#283)

This commit is contained in:
Marco Pasqualetti
2025-01-03 17:08:18 +01:00
committed by GitHub
parent cf56b3a53e
commit 0ef1252e1f
24 changed files with 82 additions and 78 deletions
@@ -1,10 +1,10 @@
import type { ReactNode, JSX } from 'react'
interface RootRouteProps {
interface RootLayoutProps {
children: ReactNode
}
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
export default function RootLayout({ children }: RootLayoutProps): JSX.Element {
return (
<html>
<body>
@@ -1,10 +1,10 @@
import type { ReactNode, JSX } from 'react'
interface RootRouteProps {
interface RootLayoutProps {
children: ReactNode
}
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
export default function RootLayout({ children }: RootLayoutProps): JSX.Element {
return (
<html>
<body>
@@ -1,11 +1,11 @@
import type { ReactNode, JSX } from 'react'
import { MDXProvider } from '@mdx-js/react'
interface RootRouteProps {
interface RootLayoutProps {
children: ReactNode
}
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
export default function RootLayout({ children }: RootLayoutProps): JSX.Element {
return (
<html>
<body>