import { RelativeTime } from "@follow/components/ui/datetime/index.jsx" import { FeedIcon } from "@follow/components/ui/feed-icon/index.jsx" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" import { cn } from "@follow/utils/utils" import { memo } from "react" import { LazyImage } from "../ui/image" import type { UniversalItemProps } from "./types" function NormalListItemImpl({ entryPreview, withDetails, }: UniversalItemProps & { withDetails?: boolean }) { const entry = entryPreview const feed = entryPreview?.feeds if (!entry || !feed) return null const displayTime = entry.entries.publishedAt return (
{feed?.title} ยท {!!displayTime && }
{entry.entries.title} {/* {!!entry.collections && } */}
{withDetails && (
{entry.entries.description}
)}
{withDetails && entry.entries.media?.[0] && (
)}
) } export const NormalListItem = memo(NormalListItemImpl)