-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tsx
66 lines (56 loc) · 1.67 KB
/
template.tsx
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"use client";
// Import required
import React, { useState } from "react";
// Import icons
import {} from "react-feather";
// Import components
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectLabel,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
// Import hooks
import { useSession } from "@/hooks/authentication/useSession";
// Types
interface Props {
children?: React.ReactNode;
}
export default function Callouts({ children, ...props }: Props) {
// States
// Auth
const { session } = useSession();
// Fetching
// Functions
// Return
return (
<div className="flex flex-col gap-2">
<div className="text-primary text-4xl hidden lg:block">Template</div>
<div className="lg:flex lg:justify-end lg:grow lg:gap-2">
<div className="md:hidden">
<Select onValueChange={(e) => window.location.assign(e)}>
<SelectTrigger className="w-full">
<SelectValue placeholder="Menu" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Pages</SelectLabel>
<SelectItem value="home">Home</SelectItem>
<SelectItem value="callouts" disabled>
Callouts
</SelectItem>
<SelectItem value="department">Department</SelectItem>
<SelectItem value="station">Station</SelectItem>
<SelectItem value="settings">Settings</SelectItem>
<SelectItem value="authentication/logout">Sign out</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
</div>
</div>
);
}