'use client' import { useSuspenseQuery } from '@tanstack/react-query' import { useTranslation } from 'react-i18next' import { SkeletonRectangle } from '@/app/components/base/skeleton' import { userProfileQueryOptions } from '@/features/account-profile/client' export function HomeIntroSkeleton() { return (
) } export function HomeIntro() { const { t } = useTranslation() const { data: userProfile } = useSuspenseQuery({ ...userProfileQueryOptions(), select: (data) => data.profile, }) return (

{t(($) => $['banner.greeting'], { name: userProfile.name, ns: 'explore' })}

{t(($) => $['banner.tagline'], { ns: 'explore' })}

) }