import { UploadImageFragment } from "graphql/generated"; import { AppStaticProps } from "graphql/getAppStaticProps"; import { prettySlug } from "helpers/formatters"; import { ImageQuality } from "helpers/img"; import { useSmartLanguage } from "hooks/useSmartLanguage"; import Link from "next/link"; import { Chip } from "./Chip"; import { Img } from "./Img"; interface Props { thumbnail?: UploadImageFragment | string | null | undefined; thumbnailAspectRatio?: string; href: string; pre_title?: string | null | undefined; title: string | null | undefined; subtitle?: string | null | undefined; topChips?: string[]; bottomChips?: string[]; } export function PreviewLine(props: Props): JSX.Element { const { href, thumbnail, pre_title, title, subtitle, topChips, bottomChips, thumbnailAspectRatio, } = props; return (
{pre_title}
} {title && ({title}
)} {subtitle &&{subtitle}
}