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

16 lines (12 loc) 265 B
import {type DocumentBadgeComponent} from 'sanity' /** @internal */ export const LiveEditBadge: DocumentBadgeComponent = (props) => { const {liveEdit} = props if (liveEdit) { return { label: 'Live', color: 'danger', } } return null }