feat: hand capabilities into draft authoring
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { Routes } from "react-router-dom";
|
||||
import { createAppRouteElements } from "./app-route-elements.js";
|
||||
|
||||
export const AppRoutes = () => (
|
||||
export type AppRoutesProps = {
|
||||
readonly protectDraftNavigation?: boolean;
|
||||
};
|
||||
|
||||
export const AppRoutes = ({
|
||||
protectDraftNavigation = false,
|
||||
}: AppRoutesProps = {}) => (
|
||||
<Routes>
|
||||
{createAppRouteElements()}
|
||||
{createAppRouteElements({ protectDraftNavigation })}
|
||||
</Routes>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user