chore: improve typings
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Link from "@/components/TempDesignSystem/Link"
|
||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
@@ -27,15 +29,16 @@ function DynamicComponentBlock({ component, user }: DynamicComponentProps) {
|
||||
}
|
||||
}
|
||||
|
||||
export default function DynamicContent({
|
||||
export default async function DynamicContent({
|
||||
dynamicContent,
|
||||
user,
|
||||
}: DynamicContentProps) {
|
||||
const displayHeader = !!(
|
||||
dynamicContent.title ||
|
||||
dynamicContent.subtitle ||
|
||||
dynamicContent.title
|
||||
)
|
||||
const user = await serverClient().user.get()
|
||||
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
{displayHeader ? (
|
||||
|
||||
Reference in New Issue
Block a user