feat: enable layout element

This commit is contained in:
Valerio Ageno
2024-05-12 17:13:41 +02:00
parent 4e1d0b6252
commit b557820b6e
7 changed files with 36 additions and 22 deletions
@@ -1,6 +1,7 @@
import * as React from 'react'
import { useRouter } from '../hooks/useRouter'
import { useRouterStore } from '../hooks/useRouterStore'
import { RouteMatch } from './RouteMatch'
import NotFound from './NotFound'
export const Matches = React.memo(function () {
@@ -13,9 +14,5 @@ export const Matches = React.memo(function () {
return <NotFound />
}
if (route.options.hasHandler) {
console.log('Has rust handler')
}
return route.options.component()
return <RouteMatch route={route} />
})