15 lines
365 B
TypeScript
15 lines
365 B
TypeScript
import { fields } from '@keystatic/core'
|
|
|
|
import { generalBlocks } from '@/keystatic/blocks/general'
|
|
import { assets } from '@/lib/images/storage'
|
|
|
|
export const content = (collection: string) =>
|
|
fields.markdoc({
|
|
label: 'Content',
|
|
options: {
|
|
heading: [2, 3, 4],
|
|
image: assets(collection),
|
|
},
|
|
components: generalBlocks(collection),
|
|
})
|