@indusaction/cms-design-system 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -23,3 +23,22 @@ export function Example() {
23
23
  );
24
24
  }
25
25
  ```
26
+
27
+ ### Status pages (404 / unauthorized)
28
+
29
+ Presentational full-page screens. They do not depend on React Router — pass `onAction` or `actionHref`, or wrap the CTA with `extra`.
30
+
31
+ ```tsx
32
+ import { NotFoundPage, UnauthorizedPage } from "@indusaction/cms-design-system";
33
+ import { useNavigate } from "react-router-dom";
34
+
35
+ export function NotFoundRoute() {
36
+ const navigate = useNavigate();
37
+ return <NotFoundPage onAction={() => navigate("/")} />;
38
+ }
39
+
40
+ export function UnauthorizedRoute() {
41
+ const navigate = useNavigate();
42
+ return <UnauthorizedPage onAction={() => navigate(-1)} />;
43
+ }
44
+ ```