feat: Add base project structure with API and web components
This commit is contained in:
17
web/src/components/Markdown/Paragraph.tsx
Normal file
17
web/src/components/Markdown/Paragraph.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user