mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-02 04:15:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
7 lines
232 B
TypeScript
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')!);
|
|
}
|