sanity-plugin-wistia-input
Version:
Wistia input for Sanity v3
18 lines (15 loc) • 370 B
text/typescript
import {definePlugin} from 'sanity'
import {Config} from './types'
import {wistiaMedia} from './schema'
import {wistiaMediaRender} from './plugin'
export const wistiaInput = definePlugin<Config>((config) => ({
name: 'sanity-plugin-wistia-input',
schema: {
types: [
{
...wistiaMedia,
...wistiaMediaRender(config),
},
],
},
}))