mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
15 lines
481 B
TypeScript
15 lines
481 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>
|
|
);
|
|
}
|