Files
MemoryBear/web/src/components/Markdown/Paragraph.tsx

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)