11 lines
311 B
TypeScript
11 lines
311 B
TypeScript
'use client'
|
|
import type { CellComponentProps } from 'payload'
|
|
|
|
import { useTableCell } from '@payloadcms/ui'
|
|
import React from 'react'
|
|
|
|
export const CustomCell: React.FC<CellComponentProps> = (props) => {
|
|
const context = useTableCell()
|
|
return <div>{`Custom cell: ${context.cellData || 'No data'}`}</div>
|
|
}
|