import { Box } from "@mantine/core" import { useAppSelector } from "app/store" import type { Entry } from "app/types" import { Content } from "./Content" import { Enclosure } from "./Enclosure" import { Media } from "./Media" export interface FeedEntryBodyProps { entry: Entry } export function FeedEntryBody(props: FeedEntryBodyProps) { const search = useAppSelector(state => state.entries.search) return ( {props.entry.enclosureType && props.entry.enclosureUrl && ( )} {/* show media only if we don't have content to avoid duplicate content */} {!props.entry.content && props.entry.mediaThumbnailUrl && ( )} ) }