|
|
|
|
@ -25,7 +25,6 @@ import Link from 'next/link'
|
|
|
|
|
import s from './style.module.css'
|
|
|
|
|
import { fetchDatasetDetail, fetchDatasetRelatedApps } from '@/service/datasets'
|
|
|
|
|
import type { RelatedApp, RelatedAppResponse } from '@/models/datasets'
|
|
|
|
|
import { getLocaleOnClient } from '@/i18n'
|
|
|
|
|
import AppSideBar from '@/app/components/app-sidebar'
|
|
|
|
|
import Divider from '@/app/components/base/divider'
|
|
|
|
|
import AppIcon from '@/app/components/base/app-icon'
|
|
|
|
|
@ -38,6 +37,7 @@ import { LanguagesSupported } from '@/i18n/language'
|
|
|
|
|
import { useStore } from '@/app/components/app/store'
|
|
|
|
|
import { AiText, ChatBot, CuteRobote } from '@/app/components/base/icons/src/vender/solid/communication'
|
|
|
|
|
import { Route } from '@/app/components/base/icons/src/vender/solid/mapsAndTravel'
|
|
|
|
|
import { getLocaleOnServer } from '@/i18n/server'
|
|
|
|
|
|
|
|
|
|
export type IAppDetailLayoutProps = {
|
|
|
|
|
children: React.ReactNode
|
|
|
|
|
@ -119,7 +119,7 @@ type IExtraInfoProps = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ExtraInfo = ({ isMobile, relatedApps }: IExtraInfoProps) => {
|
|
|
|
|
const locale = getLocaleOnClient()
|
|
|
|
|
const locale = getLocaleOnServer()
|
|
|
|
|
const [isShowTips, { toggle: toggleTips, set: setShowTips }] = useBoolean(!isMobile)
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
|
|
|