feat: hand capabilities into draft authoring

This commit is contained in:
lda
2026-08-09 08:47:03 +07:00 Verified
parent ef773dedb3
commit ee0b77125d
9 changed files with 718 additions and 19 deletions
+8 -2
View File
@@ -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>
);