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

BottomSheetContainer.tsx 626B

12345678910111213141516171819202122
  1. import React, { Fragment } from 'react';
  2. import { useSelector } from 'react-redux';
  3. import { IState } from '../../../../app/types';
  4. const BottomSheetContainer: () => JSX.Element | null = (): JSX.Element | null => {
  5. const { sheet, sheetProps } = useSelector((state: IState) => state['features/base/dialog']);
  6. const { reducedUI } = useSelector((state: IState) => state['features/base/responsive-ui']);
  7. if (!sheet || reducedUI) {
  8. return null;
  9. }
  10. return (
  11. <Fragment>
  12. { React.createElement(sheet, sheetProps) }
  13. </Fragment>
  14. );
  15. };
  16. export default BottomSheetContainer;