import { photoLabelForCount } from '@/photo'; import { clsx } from 'clsx/lite'; import Badge from '@/components/Badge'; import PhotoRecipe from '@/recipe/PhotoRecipe'; import { getAppText } from '@/i18n/state/server'; export default async function AdminRecipeBadge({ recipe, count, hideBadge, }: { recipe: string, count: number, hideBadge?: boolean, }) { const appText = await getAppText(); const renderBadgeContent = () =>
{count}   {photoLabelForCount(count, appText)}
; return ( hideBadge ? renderBadgeContent() : {renderBadgeContent()} ); }