feat: Add base project structure with API and web components
This commit is contained in:
21
web/src/components/Markdown/RbButton.tsx
Normal file
21
web/src/components/Markdown/RbButton.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { memo } from 'react'
|
||||
import type { FC, ReactNode } from 'react'
|
||||
import { Button } from 'antd'
|
||||
|
||||
interface RbButtonProps {
|
||||
node: {
|
||||
children: ReactNode;
|
||||
};
|
||||
children: string[]
|
||||
}
|
||||
const RbButton: FC<RbButtonProps> = (props) => {
|
||||
console.log('RbButton', props)
|
||||
const { children } = props;
|
||||
|
||||
return (
|
||||
<Button>
|
||||
{children}
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
export default memo(RbButton)
|
||||
Reference in New Issue
Block a user