'use client'
import { useTranslation } from 'react-i18next'
import { SkeletonContainer, SkeletonRectangle, SkeletonRow } from '@/app/components/base/skeleton'
function ExploreAppCardSkeleton() {
return (
)
}
function RecommendationSectionSkeletonBody({
hasDescription = false,
}: {
hasDescription?: boolean
}) {
if (hasDescription) {
return (
{Array.from({ length: 4 }, (_, index) => (
))}
)
}
return (
{Array.from({ length: 4 }, (_, index) => (
))}
)
}
function ExploreHeaderSkeletonBody() {
return (
{Array.from({ length: 4 }, (_, index) => (
))}
)
}
function ExploreAppListSkeletonBody() {
return (
{Array.from({ length: 8 }, (_, index) => (
))}
)
}
function BannerSkeletonBody() {
return (
)
}
export function ExploreHomeSkeleton({ showBanner }: { showBanner: boolean }) {
const { t } = useTranslation()
return (
$.loading, { ns: 'common' })} className="contents">
{showBanner &&
}
)
}