'use client' import { useTranslation } from 'react-i18next' import s from './secret-key/style.module.css' import Doc from '@/app/components/develop/doc' import Loading from '@/app/components/base/loading' import InputCopy from '@/app/components/develop/secret-key/input-copy' import SecretKeyButton from '@/app/components/develop/secret-key/secret-key-button' import { useStore as useAppStore } from '@/app/components/app/store' type IDevelopMainProps = { appId: string } const DevelopMain = ({ appId }: IDevelopMainProps) => { const appDetail = useAppStore(state => state.appDetail) const { t } = useTranslation() if (!appDetail) { return (
) } return (
{t('appApi.apiServer')}
{t('appApi.status')}
{appDetail.enable_api ? `${t('appApi.ok')}` : `${t('appApi.disabled')}`}
) } export default DevelopMain