您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DrawerPortal.js 571B

12345678910111213141516171819202122232425262728
  1. // @flow
  2. import React from 'react';
  3. import DialogPortal from './DialogPortal';
  4. type Props = {
  5. /**
  6. * The component(s) to be displayed within the drawer portal.
  7. */
  8. children: React$Node
  9. };
  10. /**
  11. * Component meant to render a drawer at the bottom of the screen,
  12. * by creating a portal containing the component's children.
  13. *
  14. * @returns {ReactElement}
  15. */
  16. function DrawerPortal({ children }: Props) {
  17. return (
  18. <DialogPortal className = 'drawer-portal'>
  19. { children }
  20. </DialogPortal>
  21. );
  22. }
  23. export default DrawerPortal;