PreStyling Layouts & Components
This commit is contained in:
@@ -1,25 +1,6 @@
|
||||
import { fields } from '@keystatic/core'
|
||||
|
||||
import { assets } from '@/lib/images/storage'
|
||||
import { imageFields } from './image'
|
||||
|
||||
export const cover = (collection: string) =>
|
||||
fields.object(
|
||||
{
|
||||
image: fields.image({
|
||||
label: 'Image',
|
||||
...assets(collection),
|
||||
}),
|
||||
alt: fields.text({
|
||||
label: 'Alt text',
|
||||
}),
|
||||
caption: fields.text({
|
||||
label: 'Caption',
|
||||
}),
|
||||
credit: fields.text({
|
||||
label: 'Credit',
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: 'Cover',
|
||||
},
|
||||
)
|
||||
fields.object(imageFields(collection), { label: 'Cover' })
|
||||
|
||||
Reference in New Issue
Block a user