import { Button, Box, Throbber } from '@rocket.chat/fuselage'; import React, { useState } from 'react'; import { Apps } from '../../../app/apps/client'; import ExternalLink from '../../components/basic/ExternalLink'; import Page from '../../components/basic/Page'; import { useRoute } from '../../contexts/RouterContext'; import { useTranslation } from '../../contexts/TranslationContext'; import { useMethod } from '../../contexts/ServerContext'; const readMeUrl = 'https://go.rocket.chat/i/developing-an-app'; function AppsWhatIsIt() { const t = useTranslation(); const [loading, setLoading] = useState(false); const [error, setError] = useState(false); const appsRouter = useRoute('admin-marketplace'); const enableAppsEngine = useMethod('apps/go-enable'); const isAppsEngineEnabled = useMethod('apps/is-enabled'); const handleClick = async () => { setLoading(true); try { await enableAppsEngine(); if (await isAppsEngineEnabled()) { await Apps.getAppClientManager().initialize(); await Apps.load(true); } appsRouter.push(); } catch (error) { setError(error); } }; return {error ? {error.message} :

{t('Apps_WhatIsIt_paragraph1')}

{t('Apps_WhatIsIt_paragraph2')}

{t('Apps_WhatIsIt_paragraph3')} {' '}

{t('Apps_WhatIsIt_paragraph4')}

}
; } export default AppsWhatIsIt;