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

35 lines (28 loc) 761 B
import {definePlugin} from 'sanity' import {commentsUsEnglishLocaleBundle} from '../i18n' import {CommentsDocumentLayout} from './document-layout' import {CommentsField} from './field' import {CommentsInput} from './input' import {commentsInspector} from './inspector' import {CommentsStudioLayout} from './studio-layout' export const comments = definePlugin({ name: 'sanity/structure/comments', document: { inspectors: [commentsInspector], components: { unstable_layout: CommentsDocumentLayout, }, }, form: { components: { field: CommentsField, input: CommentsInput, }, }, studio: { components: { layout: CommentsStudioLayout, }, }, i18n: {bundles: [commentsUsEnglishLocaleBundle]}, })