import type { Card } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import { useTranslation } from 'react-i18next'; import { GenericCard, GenericCardButton } from '../../../components/GenericCard'; import { useExternalLink } from '../../../hooks/useExternalLink'; import { links } from '../../../lib/links'; const GOOGLE_PLAY_URL = links.go.mobileAppGoogle; const APP_STORE_URL = links.go.mobileAppApple; const MobileAppsCard = (props: Omit, 'type'>) => { const { t } = useTranslation(); const handleOpenLink = useExternalLink(); return ( handleOpenLink(GOOGLE_PLAY_URL)} role='link'> {t('Google_Play')} , handleOpenLink(APP_STORE_URL)} role='link'> {t('App_Store')} , ]} width='x340' {...props} /> ); }; export default MobileAppsCard;