Beta
Incoming reference action component definition. Allows users to define actions that will be shown in the IncomingReferences component as part of each reference example:
export const LogReferenceAction: IncomingReferenceAction = ({document, getClient}) => { return { label: 'Log reference', icon: LogIcon, onHandle: () => console.log(document._id) }} Copy
export const LogReferenceAction: IncomingReferenceAction = ({document, getClient}) => { return { label: 'Log reference', icon: LogIcon, onHandle: () => console.log(document._id) }}
Incoming reference action component definition. Allows users to define actions that will be shown in the IncomingReferences component as part of each reference example: