|
1
|
import { Button, Prompt } from "@medusajs/ui" |
|
2
|
|
|
3
|
export default function PromptConfirmation() { |
|
4
|
return ( |
|
5
|
<Prompt variant="confirmation"> |
|
6
|
<Prompt.Trigger asChild> |
|
7
|
<Button>Open Confirmation</Button> |
|
8
|
</Prompt.Trigger> |
|
9
|
<Prompt.Content> |
|
10
|
<Prompt.Header> |
|
11
|
<Prompt.Title>Confirm Action</Prompt.Title> |
|
12
|
<Prompt.Description> |
|
13
|
Are you sure you want to proceed? This action can be undone. |
|
14
|
</Prompt.Description> |
|
15
|
</Prompt.Header> |
|
16
|
<Prompt.Footer> |
|
17
|
<Prompt.Cancel>Cancel</Prompt.Cancel> |
|
18
|
<Prompt.Action>Confirm</Prompt.Action> |
|
19
|
</Prompt.Footer> |
|
20
|
</Prompt.Content> |
|
21
|
</Prompt> |
|
22
|
) |
|
23
|
} |