function hasThumbnail
hasThumbnail(dump: Dump): boolean

Checks whether dump has an image to show: an uploaded thumbnail, an image, video or audio file, or a link preview's thumbnail. Only such dumps get the large tiles, and JournalCard shows them as image tiles.

Parameters

dump: Dump

Return Type

boolean

Usage

import { hasThumbnail } from "src/utils/feed/journalLayout.ts";