| import { Modal } from "../../../components/ui/Modal"; | |
| import { Button } from "../../../components/ui/Button"; | |
| import { TerminalCard } from "../../../components/ui/TerminalCard"; | |
| import { Plugin } from "../types"; | |
| export function PluginInstallModal({ | |
| plugin, | |
| onClose, | |
| onConfirm, | |
| }: { | |
| plugin: Plugin; | |
| onClose: () => void; | |
| onConfirm: () => void; | |
| }) { | |
| return ( | |
| <Modal open={!!plugin} onClose={onClose} title={`Install ${plugin?.name}`}> | |
| <TerminalCard className="p-4 space-y-4"> | |
| <p> | |
| The plugin <strong>{plugin?.name}</strong> will have access to: | |
| </p> | |
| <ul className="list-disc list-inside text-sm text-slate-300"> | |
| {plugin?.permissions.map((p) => ( | |
| <li key={p}>{p}</li> | |
| ))} | |
| </ul> | |
| <div className="flex gap-2"> | |
| <Button onClick={onConfirm}>Confirm Installation</Button> | |
| <Button variant="ghost" onClick={onClose}> | |
| Cancel | |
| </Button> | |
| </div> | |
| </TerminalCard> | |
| </Modal> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- 338ba940d8eea4468789757b92f9c03b207794689b058bc01d5ef17e71536751
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.