'use client' import { useTranslation } from 'react-i18next' import useSWR from 'swr' import Doc from '@/app/components/develop/doc' import InputCopy from '@/app/components/develop/secret-key/input-copy' import SecretKeyButton from '@/app/components/develop/secret-key/secret-key-button' import { fetchAppDetail } from '@/service/apps' import s from './secret-key/style.module.css' type IDevelopMainProps = { appId: string dictionary: any } const DevelopMain = ({ appId, dictionary }: IDevelopMainProps) => { const commonParams = { url: '/apps', id: appId } const { data: appDetail } = useSWR(commonParams, fetchAppDetail) const { t } = useTranslation() // const serverApi = `${appDetail?.site?.app_base_url}/api/${appDetail?.site?.access_token}` return (
{dictionary.app?.develop?.title}
{t('appApi.apiServer')}
{t('appApi.status')}
{appDetail?.enable_api ? `${t('appApi.ok')}` : `${t('appApi.disabled')}`}
) } export default DevelopMain