docs: add comments to the src/components directory

This commit is contained in:
zhaoying
2026-02-02 16:14:39 +08:00
parent 9a38e8a4a0
commit a191e32f71
55 changed files with 1417 additions and 375 deletions

View File

@@ -1,15 +1,30 @@
import { memo } from 'react'
/*
* @Author: ZhaoYing
* @Date: 2026-02-02 15:16:06
* @Last Modified by: ZhaoYing
* @Last Modified time: 2026-02-02 15:16:06
*/
/**
* Paragraph Component
*
* A simple paragraph component for rendering markdown paragraphs.
*
* @component
*/
import { memo } from 'react'
import type { FC, ReactNode } from 'react'
/** Props interface for Paragraph component */
interface ParagraphProps {
node: {
children: ReactNode;
};
children: string[]
}
/** Paragraph component for rendering markdown paragraphs */
const Paragraph: FC<ParagraphProps> = (props) => {
// console.log('Paragraph', props)
const { children } = props
return <p>{children}</p>