2023-06-01 23:19:36 +08:00
|
|
|
import React from 'react'
|
2023-05-25 16:59:47 +08:00
|
|
|
import Main from '@/app/components/explore/installed-app'
|
|
|
|
|
|
2023-06-01 23:19:36 +08:00
|
|
|
export type IInstalledAppProps = {
|
2025-10-27 14:38:58 +08:00
|
|
|
params?: Promise<{
|
2023-05-25 16:59:47 +08:00
|
|
|
appId: string
|
2025-10-27 14:38:58 +08:00
|
|
|
}>
|
2023-05-25 16:59:47 +08:00
|
|
|
}
|
|
|
|
|
|
2025-07-17 10:52:10 +08:00
|
|
|
// Using Next.js page convention for async server components
|
|
|
|
|
async function InstalledApp({ params }: IInstalledAppProps) {
|
2025-10-27 14:38:58 +08:00
|
|
|
const { appId } = await (params ?? Promise.reject(new Error('Missing params')))
|
2023-05-25 16:59:47 +08:00
|
|
|
return (
|
2025-07-17 10:52:10 +08:00
|
|
|
<Main id={appId} />
|
2023-05-25 16:59:47 +08:00
|
|
|
)
|
|
|
|
|
}
|
2025-07-17 10:52:10 +08:00
|
|
|
|
|
|
|
|
export default InstalledApp
|