19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import React from 'react'
|
|
|
|
import type {
|
|
DescriptionComponent,
|
|
DescriptionFunction,
|
|
} from '../../../../packages/payload/src/admin/types.js'
|
|
|
|
export const FieldDescriptionComponent: DescriptionComponent<string> = ({ path, value }) => {
|
|
return (
|
|
<div>
|
|
Component description: {path} - {value}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const FieldDescriptionFunction: DescriptionFunction<string> = ({ path, value }) => {
|
|
return `Function description: ${path} - ${value}`
|
|
}
|