18 lines
342 B
TypeScript
18 lines
342 B
TypeScript
import { memo } from 'react'
|
|
|
|
import type { FC, ReactNode } from 'react'
|
|
|
|
interface ParagraphProps {
|
|
node: {
|
|
children: ReactNode;
|
|
};
|
|
children: string[]
|
|
}
|
|
const Paragraph: FC<ParagraphProps> = (props) => {
|
|
// console.log('Paragraph', props)
|
|
const { children } = props
|
|
|
|
return <p>{children}</p>
|
|
}
|
|
export default memo(Paragraph)
|