mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
15 lines
483 B
TypeScript
15 lines
483 B
TypeScript
import { Dialog, type DialogProps } from '@/components/elements/dialog';
|
|
import ApiKeyModalContent from '@/components/dashboard/ApiKeyModalContent';
|
|
|
|
interface Props extends DialogProps {
|
|
apiKey: string;
|
|
}
|
|
|
|
export default function ApiKeyModal({ apiKey, onClose, open }: Props) {
|
|
return (
|
|
<Dialog open={open} onClose={onClose} preventExternalClose title={'Your API key'}>
|
|
<ApiKeyModalContent apiKey={apiKey} onClose={onClose} />
|
|
</Dialog>
|
|
);
|
|
}
|