'use client' import type { App } from '@/types/app' import { useTranslation } from 'react-i18next' import { APP_LIST_GRID_CLASS_NAME } from './constants' import { StarredAppCard } from './starred-app-card' type StarredAppListProps = { apps: App[] onRefresh?: () => void stepByStepTourCardTarget?: string stepByStepTourCardHighlightPart?: string stepByStepTourHighlightedCardCount?: number } function SectionDivider({ label }: { label: string }) { return (
{label}
) } export function StarredAppList({ apps, onRefresh, stepByStepTourCardTarget, stepByStepTourCardHighlightPart, stepByStepTourHighlightedCardCount = 0, }: StarredAppListProps) { const { t } = useTranslation() if (apps.length === 0) return null return ( <> $['studio.starred'], { ns: 'app' })} />
{apps.map((app, index) => ( ))}
$['studio.allApps'], { ns: 'app' })} /> ) }