Files
pterodactyl-panel/resources/scripts/components/elements/Portal.tsx
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

7 lines
232 B
TypeScript

import type React from 'react';
import { createPortal } from 'react-dom';
export default function Portal({ children }: { children: React.ReactNode }) {
return createPortal(children, document.getElementById('modal-portal')!);
}