2024-06-10 09:43:10 +00:00
|
|
|
"use client";
|
|
|
|
|
2023-12-26 07:58:47 +00:00
|
|
|
// components
|
|
|
|
// ui
|
2024-03-19 14:38:35 +00:00
|
|
|
import { IWebhook } from "@plane/types";
|
2023-12-26 07:58:47 +00:00
|
|
|
import { Button } from "@plane/ui";
|
|
|
|
// types
|
2024-03-06 13:09:14 +00:00
|
|
|
import { WebhookSecretKey } from "./form";
|
2023-12-26 07:58:47 +00:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
handleClose: () => void;
|
|
|
|
webhookDetails: IWebhook;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const GeneratedHookDetails: React.FC<Props> = (props) => {
|
|
|
|
const { handleClose, webhookDetails } = props;
|
|
|
|
|
|
|
|
return (
|
2024-05-07 07:14:36 +00:00
|
|
|
<>
|
|
|
|
<div className="space-y-5 p-5">
|
|
|
|
<div className="space-y-3">
|
|
|
|
<h3 className="text-xl font-medium text-custom-text-200">Key created</h3>
|
|
|
|
<p className="text-sm text-custom-text-400">
|
|
|
|
Copy and save this secret key in Plane Pages. You can{"'"}t see this key after you hit Close. A CSV file
|
|
|
|
containing the key has been downloaded.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<WebhookSecretKey data={webhookDetails} />
|
2023-12-26 07:58:47 +00:00
|
|
|
</div>
|
2024-05-07 07:14:36 +00:00
|
|
|
<div className="px-5 py-4 flex items-center justify-end gap-2 border-t-[0.5px] border-custom-border-200">
|
2023-12-26 07:58:47 +00:00
|
|
|
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
|
|
|
|
Close
|
|
|
|
</Button>
|
|
|
|
</div>
|
2024-05-07 07:14:36 +00:00
|
|
|
</>
|
2023-12-26 07:58:47 +00:00
|
|
|
);
|
|
|
|
};
|