'use client' import { useTranslation } from 'react-i18next' import useSWR from 'swr' import s from './secret-key/style.module.css' 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' type IDevelopMainProps = { appId: string } const DevelopMain = ({ appId }: IDevelopMainProps) => { const commonParams = { url: '/apps', id: appId } const { data: appDetail } = useSWR(commonParams, fetchAppDetail) const { t } = useTranslation() return (