-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathauth.jsx
More file actions
52 lines (48 loc) · 1.05 KB
/
auth.jsx
File metadata and controls
52 lines (48 loc) · 1.05 KB
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
44
45
46
47
48
49
50
51
52
import { Routes, Route } from "react-router-dom";
import {
ChartPieIcon,
UserIcon,
UserPlusIcon,
ArrowRightOnRectangleIcon,
} from "@heroicons/react/24/solid";
import { Navbar, Footer } from "@/widgets/layout";
import routes from "@/routes";
export function Auth() {
const navbarRoutes = [
{
name: "dashboard",
path: "/dashboard/home",
icon: ChartPieIcon,
},
{
name: "User",
path: "/dashboard/home",
icon: UserIcon,
},
{
name: "sign up",
path: "/auth/sign-up",
icon: UserPlusIcon,
},
{
name: "sign in",
path: "/auth/sign-in",
icon: ArrowRightOnRectangleIcon,
},
];
return (
<div className="relative min-h-screen w-full">
<Routes>
{routes.map(
({ layout, pages }) =>
layout === "auth" &&
pages.map(({ path, element }) => (
<Route exact path={path} element={element} />
))
)}
</Routes>
</div>
);
}
Auth.displayName = "/src/layout/Auth.jsx";
export default Auth;