chore(richtext-lexical): remove outdated custom block component examples (#9754)
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import type React from 'react'
|
|
||||||
|
|
||||||
export const EmbedComponent: React.FC<any> = (props) => {
|
|
||||||
const { data } = props
|
|
||||||
|
|
||||||
return <span>{data.key}</span>
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import type { Block, PayloadClientReactComponent } from 'payload'
|
|
||||||
|
|
||||||
import React from 'react'
|
|
||||||
|
|
||||||
export const LabelComponent: PayloadClientReactComponent<Block['admin']['components']['Label']> = (
|
|
||||||
props,
|
|
||||||
) => {
|
|
||||||
const { formData } = props
|
|
||||||
return <div>{formData?.key}</div>
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user