-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdetail-settings.tsx
41 lines (39 loc) · 1.04 KB
/
detail-settings.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
import React, { useEffect } from 'react';
import { Button } from './ui/button';
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from './ui/dialog';
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/components/ui/select';
import { DownloadIcon, GearIcon } from '@radix-ui/react-icons';
import PullModelForm from './pull-model-form';
import UserSetting from './settings/settings';
export default function DetailSettings() {
const [isOpen, setIsOpen] = React.useState(false);
return (
<Dialog open={isOpen} onOpenChange={setIsOpen}>
<DialogTrigger className="w-full">
<div className="flex w-full gap-2 p-1 items-center cursor-pointer">
<GearIcon className="w-4 h-4" />
Settings
</div>
</DialogTrigger>
<DialogContent>
<DialogHeader className="space-y-4">
<DialogTitle>Settings</DialogTitle>
<UserSetting />
</DialogHeader>
</DialogContent>
</Dialog>
);
}