FullScreenButton.tsx 478 B

123456789101112131415161718192021
  1. import React from 'react';
  2. import FullScreenButton from '../components/FullScreenButton';
  3. import useActions from '../actions';
  4. import useStore from '../store';
  5. const FullScreenButtonContainer = () => {
  6. const [{ displayMode }, dispatch] = useStore();
  7. const { toggleDisplayMode } = useActions(dispatch);
  8. return (
  9. <FullScreenButton
  10. displayMode={displayMode}
  11. toggleDisplayMode={toggleDisplayMode}
  12. />
  13. );
  14. };
  15. export default FullScreenButtonContainer;