import { useCallback, useMemo } from 'react' import { Card, Tooltip } from 'antd' import AppIcon from 'components/appIcon' import { useGoToAppCallback } from 'hooks/useGotoApp' import { RootState, useRootSelector } from 'store' import { useAppName } from 'hooks/useAppName' import { useCurrentAppId } from 'hooks/useAppIds' const STORE_ID = 'store' export type SenMarketProps = { isMobile?: boolean } const SenMarket = ({ isMobile }: SenMarketProps) => { const visible = useRootSelector(({ ui }: RootState) => ui.visibleNavigation) const currentAppId = useCurrentAppId() const onGoToApp = useGoToAppCallback() const getAppName = useAppName() const nextVisible = useMemo(() => !isMobile && visible, [isMobile, visible]) const onStore = useCallback(async () => { return onGoToApp({ appId: STORE_ID }) }, [onGoToApp]) return ( ) } export default SenMarket