-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathsafe-actions.tsx
More file actions
63 lines (61 loc) · 1.85 KB
/
Copy pathsafe-actions.tsx
File metadata and controls
63 lines (61 loc) · 1.85 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
53
54
55
56
57
58
59
60
61
62
63
"use client";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { RiAddFill, RiSafe2Fill, RiSafeFill } from "@remixicon/react";
import { pushModal } from "../modals";
export function SafeActions() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button>
<RiAddFill className="mr-2 h-5 w-5" />
Manage SAFE
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="flex flex-col text-start">
<ul>
<li>
<Button
variant="link"
className="hover:no-underline hover:text-gray-700"
size="sm"
type="submit"
onClick={() => {
pushModal("NewSafeModal", {
title: "Create a new SAFE agreement",
subtitle:
"Create, sign and send a new SAFE agreement to your investors.",
});
}}
>
<RiSafeFill className="mr-2 h-4 w-4" />
Create a new SAFE
</Button>
</li>
<li>
<Button
variant="link"
className="hover:no-underline hover:text-gray-900"
size="sm"
type="submit"
onClick={() => {
pushModal("ExistingSafeModal", {
title: "Create an existing SAFE agreement",
subtitle:
"Record an existing SAFE agreement to keep track of it in your captable.",
});
}}
>
<RiSafe2Fill className="mr-2 h-4 w-4" />
Import existing SAFE
</Button>
</li>
</ul>
</DropdownMenuContent>
</DropdownMenu>
);
}