import { Box } from "@mantine/core" import { Constants } from "app/constants" import { calculatePlaceholderSize } from "app/utils" import { BasicHtmlStyles } from "components/content/BasicHtmlStyles" import { ImageWithPlaceholderWhileLoading } from "components/ImageWithPlaceholderWhileLoading" import { Content } from "./Content" export interface MediaProps { thumbnailUrl: string thumbnailWidth?: number thumbnailHeight?: number description?: string } export function Media(props: MediaProps) { const width = props.thumbnailWidth const height = props.thumbnailHeight const placeholderSize = calculatePlaceholderSize({ width, height, maxWidth: Constants.layout.entryMaxWidth, }) return ( {props.description && ( )} ) }