import React from 'react' ; import { useSelector } from 'react-redux' ; import { getUserInfo } from '@app/redux/reducers/user' ; import SignModal from './sign-modal' ; import EditorModalComment from './editor-comment-modal' ; import ReportModal from './report-modal' ; import BindingPhone from './binding-phone-modal' ; import UnlockToken from './unlock-token-modal' ; import BackToTop from './back-to-top' ; import AppDownload from './app-download' ; export default function ( ) { const me = useSelector ( ( state ) => getUserInfo ( state ) ) ; return ( < > < BackToTop /> < AppDownload / > { ! me ? < SignModal /> : < > < EditorModalComment /> < ReportModal / > < BindingPhone /> < UnlockToken / > < />} < />); }