-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathSetNewConfigDirect.tsx
More file actions
29 lines (27 loc) · 794 Bytes
/
SetNewConfigDirect.tsx
File metadata and controls
29 lines (27 loc) · 794 Bytes
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
"use client"
import { Button } from "@/components/ui/button"
import { useState } from "react"
import { UploadFileForm } from "@/components/UploadFileForm/UploadFileForm"
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
export const SetNewConfigDirect = () => {
const [open, setOpen] = useState(false);
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<Button data-test={"btn-upload-files"}>Upload Files</Button>
</DialogTrigger>
<DialogContent className="min-w-5xl">
<DialogHeader>
<DialogTitle>Upload Files Directly</DialogTitle>
</DialogHeader>
<UploadFileForm setOpen={setOpen} />
</DialogContent>
</Dialog>
);
};