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
29 lines (24 loc) • 762 B
text/typescript
import {type ComponentType, type ReactNode} from 'react'
import {type HookCollectionActionHook} from '../../components/hookCollection'
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
extends HookCollectionActionHook<DocumentBadgeProps, DocumentBadgeDescription> {
(props: DocumentBadgeProps): DocumentBadgeDescription | null
}