-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-only
import "../polyfill.ts";
import { Button, Container } from "@radix-ui/themes";
import { type FC } from "react";
import * as Empty from "../components/Empty.ts";
import { Select } from "../contexts/Router.tsx";
import * as root from "./root/page.tsx";
import * as workspace from "./:workspace/page.tsx";
export const Page: FC = () => {
return (
<Select
routes={[
{
pattern: root.pattern,
children: <root.Page />,
},
{
pattern: workspace.pattern,
children: <workspace.Page />,
},
]}
fallback={
<Container p="3" size="2">
<Empty.Root>
<Empty.Title>ページが見つかりません</Empty.Title>
<Empty.Description>指定された URL にページはありません。</Empty.Description>
<Empty.Actions>
<Button asChild size="3">
<a href="/">トップへ</a>
</Button>
</Empty.Actions>
</Empty.Root>
</Container>
}
/>
);
};