{"version":3,"file":"types.js","names":[],"sources":["../../../src/elements/AddNewRelation/types.ts"],"sourcesContent":["import type { ValueWithRelation } from 'payload'\n\nexport type Props = {\n readonly Button?: React.ReactNode\n readonly path: string\n readonly relationTo: string | string[]\n readonly unstyled?: boolean\n} & SharedRelationshipInputProps\n\ntype SharedRelationshipInputProps =\n | {\n readonly hasMany: false\n readonly onChange: (value: ValueWithRelation, modifyForm?: boolean) => void\n readonly value?: null | ValueWithRelation\n }\n | {\n readonly hasMany: true\n readonly onChange: (value: ValueWithRelation[]) => void\n readonly value?: null | ValueWithRelation[]\n }\n"],"mappings":"AAEA","ignoreList":[]}