UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

9 lines (6 loc) 276 B
import {type IconComponent} from '@sanity/icons' import {type ChunkType} from 'sanity' import {TIMELINE_ICON_COMPONENTS} from './constants' export function getTimelineEventIconComponent(type: ChunkType): IconComponent | undefined { return TIMELINE_ICON_COMPONENTS[type] }