14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
'use client'
|
|
|
|
import type { RowLabelComponent } from 'payload'
|
|
|
|
import { useRowLabel } from '@payloadcms/ui'
|
|
import React from 'react'
|
|
|
|
export const ArrayRowLabel: RowLabelComponent = () => {
|
|
const { data } = useRowLabel<{ title: string }>()
|
|
return (
|
|
<div style={{ color: 'coral', textTransform: 'uppercase' }}>{data.title || 'Untitled'}</div>
|
|
)
|
|
}
|