import { useViewport } from 'hooks/useViewport' import AnimationSettings from './AnimationSettings' import DisplaySettings from './DisplaySettings' import HotKeysSettings from './HotKeysSettings' import NotificationSettings from './NotificationSettings' import PreferredExplorerSettings from './PreferredExplorerSettings' import RpcSettings from './RpcSettings' import SoundSettings from './SoundSettings' import { breakpoints } from 'utils/theme' import AccountSettings from './AccountSettings' import useMangoAccount from 'hooks/useMangoAccount' import useUnownedAccount from 'hooks/useUnownedAccount' const SettingsPage = () => { const { width } = useViewport() const { mangoAccountAddress } = useMangoAccount() const { isUnownedAccount } = useUnownedAccount() const isMobile = width ? width < breakpoints.lg : false return (
{mangoAccountAddress && !isUnownedAccount ? (
) : null}
{!isMobile ? (
) : null}
) } export default SettingsPage