34 lines
671 B
TypeScript
34 lines
671 B
TypeScript
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types.js'
|
|
|
|
import { radioFieldsSlug } from '../../slugs.js'
|
|
|
|
const RadioFields: CollectionConfig = {
|
|
slug: radioFieldsSlug,
|
|
fields: [
|
|
{
|
|
name: 'radio',
|
|
label: {
|
|
en: 'Radio en',
|
|
es: 'Radio es',
|
|
},
|
|
type: 'radio',
|
|
options: [
|
|
{
|
|
label: { en: 'Value One', es: 'Value Uno' },
|
|
value: 'one',
|
|
},
|
|
{
|
|
label: 'Value Two',
|
|
value: 'two',
|
|
},
|
|
{
|
|
label: 'Value Three',
|
|
value: 'three',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|
|
|
|
export default RadioFields
|