-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathUploadProtocol.tsx
44 lines (40 loc) · 1.33 KB
/
UploadProtocol.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
'use client';
import { parseAsInteger, useQueryState } from 'nuqs';
import ProtocolUploader from '~/app/dashboard/_components/ProtocolUploader';
import { Button } from '~/components/ui/Button';
import Heading from '~/components/ui/typography/Heading';
import Paragraph from '~/components/ui/typography/Paragraph';
function ConfigureStudy() {
const [currentStep, setCurrentStep] = useQueryState(
'step',
parseAsInteger.withDefault(1),
);
const handleNextStep = () => {
void setCurrentStep(currentStep + 1);
};
return (
<div className="flex max-w-[30rem] flex-col items-stretch justify-between">
<div className="flex flex-col">
<Heading variant="h2">Import Protocols</Heading>
<Paragraph>
If you have already created a Network Canvas protocol (
<code>.netcanvas</code>) you can import it now.
</Paragraph>
<Paragraph>
If you don't have a protocol yet, you can upload one later from
the dashboard.
</Paragraph>
<ProtocolUploader
className="m-10 p-8"
buttonVariant="outline"
buttonSize="lg"
hideCancelButton
/>
</div>
<div className="flex justify-end">
<Button onClick={handleNextStep}>Continue</Button>
</div>
</div>
);
}
export default ConfigureStudy;