= {
+ chill: "轻松",
+ moderate: "适度",
+ active: "活跃",
+};
+
+function TagPills({ idea }: { idea: MyIdea }) {
+ const pills: string[] = [];
+ if (idea.costLevel && COST_LABELS[idea.costLevel]) pills.push(COST_LABELS[idea.costLevel]);
+ if (idea.intensity && INTENSITY_LABELS[idea.intensity]) pills.push(INTENSITY_LABELS[idea.intensity]);
+ if (idea.needsBooking) pills.push("需预约");
+
+ if (pills.length === 0 && !idea.estimatedMinutes) return null;
+
+ return (
+
+ {pills.map((label) => (
+
+ {label}
+
+ ))}
+
+
+ );
+}
+
function MyIdeaItem({
idea,
onEdit,
@@ -86,7 +125,7 @@ function MyIdeaItem({
return (
- {idea.content}
-
+