123456789101112131415161718192021222324252627282930313233 |
- // @flow
- import React from 'react';
-
- import DialogPortal from './DialogPortal';
-
- type Props = {
-
- /**
- * The component(s) to be displayed within the drawer portal.
- */
- children: React$Node,
-
- /**
- * Class name used to add custom styles to the portal.
- */
- className?: string
- };
-
- /**
- * Component meant to render a drawer at the bottom of the screen,
- * by creating a portal containing the component's children.
- *
- * @returns {ReactElement}
- */
- function JitsiPortal({ children, className }: Props) {
- return (
- <DialogPortal className = { `drawer-portal ${className ?? ''}` }>
- { children }
- </DialogPortal>
- );
- }
-
- export default JitsiPortal;
|