add Analyse
This commit is contained in:
@@ -2,6 +2,9 @@ import { Link } from 'react-router-dom';
|
||||
import CategoryBadge from './CategoryBadge';
|
||||
|
||||
export default function RecipeCard({ recipe }) {
|
||||
const author = recipe.source_author || recipe.tiktok_author;
|
||||
const source = recipe.source || 'tiktok';
|
||||
|
||||
return (
|
||||
<Link
|
||||
to={`/recipe/${recipe.id}`}
|
||||
@@ -25,7 +28,7 @@ export default function RecipeCard({ recipe }) {
|
||||
</p>
|
||||
)}
|
||||
<div className="flex items-center gap-4 text-xs text-gray-400">
|
||||
{recipe.tiktok_author && <span>@{recipe.tiktok_author}</span>}
|
||||
{author && <span>@{author} ({source === 'instagram' ? 'IG' : 'TT'})</span>}
|
||||
<span>{recipe.ingredients?.length || 0} Zutaten</span>
|
||||
<span>{recipe.steps?.length || 0} Schritte</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user