export type PortalRef = Record; export interface PortalProps { /** * Callback được gọi khi component có thay đổi. */ didUpdate?: (prevProps: PortalProps) => void; /** * Callback được gọi để lấy ra container của component. */ getContainer: () => HTMLElement; /** * Phần tử cần được hiển thị bên trong portal. */ children?: React.ReactNode; } declare const Portal: React.FunctionComponent; export default Portal;