MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getThumbnailTitle

Function getThumbnailTitle

site/ui/SiteNodeSection.tsx:26–32  ·  view source on GitHub ↗
(thumbnail: {
  readonly alt: string;
  readonly title?: string;
})

Source from the content-addressed store, hash-verified

24 readMore ? ` [Read more](${(isSingle ? '#' : '') + node.url}).` : '';
25
26const getThumbnailTitle = (thumbnail: {
27 readonly alt: string;
28 readonly title?: string;
29}): string =>
30 thumbnail.title == null || thumbnail.title == 'Thumbnail'
31 ? thumbnail.alt
32 : thumbnail.title;
33
34const SiteSection: FunctionComponent<{
35 readonly children?: ReactNode;

Callers 1

SiteSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…