"use client"; import Link from "next/link"; import { formatDate, isToday } from "@/lib/utils/date"; import { MoodIcon } from "./MoodSelector"; import { TagChips } from "./TagInput"; import type { EntryWithTags } from "@/lib/types"; interface EntryRowProps { entry: EntryWithTags; } export function EntryRow({ entry }: EntryRowProps) { // Truncate text to one line preview const preview = entry.text.length > 80 ? entry.text.slice(0, 80) + "..." : entry.text; return (
{preview}
{entry.tags.length > 0 && (