'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[] isCurrentWorkspaceEditor: boolean onRefresh?: () => void } function SectionDivider({ label }: { label: string }) { return (
{label}
) } export function StarredAppList({ apps, isCurrentWorkspaceEditor, onRefresh, }: StarredAppListProps) { const { t } = useTranslation() if (apps.length === 0) return null return ( <>
{apps.map(app => ( ))}
) }