import{r as n,j as e}from"./vendor-react-wBh_31cN.js";import{C as l}from"./code-BepIAQDJ.js";import{C as i}from"./callout-Dd8FkTQe.js";import{D as c,z as m,B as d,C as p,F as x,G as h}from"./index-BKr2rJhV.js";const u=({isOpen:t,onClose:a,onSave:o,createdKey:r})=>e.jsx(c,{open:t,onOpenChange:s=>!s&&a(),children:e.jsxs(m,{className:"max-w-sm",showCloseButton:!1,onInteractOutside:s=>s.preventDefault(),children:[e.jsx(d,{children:e.jsx(p,{children:"Save the key"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your API key has been generated."}),e.jsx("div",{className:"break-all",children:e.jsx(l,{copyButton:!0,content:r,title:"API key"})}),e.jsx("div",{className:"my-2",children:e.jsx(i,{content:"Save this API key securely. It will not be accessible afterwards.",type:"warning"})}),e.jsx(x,{children:e.jsx(h,{onClick:o,children:"I saved the API key"})})]})}),f=n.memo(u);export{f as A};
