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
27 lines (22 loc) • 603 B
text/typescript
import {type ComponentType, type ReactNode} from 'react'
import {type EditStateFor} from '../../store'
/**
* @hidden
* @beta */
export interface DocumentBadgeDescription {
title?: string
label?: string | undefined
color?: 'primary' | 'success' | 'warning' | 'danger'
icon?: ReactNode | ComponentType
}
/**
* @hidden
* @beta */
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface DocumentBadgeProps extends EditStateFor {}
/**
* @hidden
* @beta */
export interface DocumentBadgeComponent {
(props: DocumentBadgeProps): DocumentBadgeDescription | null
}