'use client' import { cn } from '@langgenius/dify-ui/cn' import { useTranslation } from 'react-i18next' import { SkeletonContainer, SkeletonRectangle, SkeletonRow } from '@/app/components/base/skeleton' import { MAIN_NAV_APP_CARD_GRID_CLASS_NAME } from '@/app/components/main-nav/app-card-grid' import { HomeIntroSkeleton } from './home-intro' function HomeTemplateCardSkeleton() { return (
) } function HomeRecommendationsSkeleton() { return (
{Array.from({ length: 4 }, (_, index) => (
))}
) } function HomeTemplatesHeaderSkeletonBody() { return (
{Array.from({ length: 4 }, (_, index) => ( ))}
) } function HomeTemplatesSkeletonBody() { return (
{Array.from({ length: 8 }, (_, index) => ( ))}
) } function HomeBannerSkeleton() { return (
) } export function HomeSkeleton({ showBanner }: { showBanner: boolean }) { const { t } = useTranslation() return (
$.loading, { ns: 'common' })} className="contents"> {showBanner && }
) }