mirror of
https://github.com/zhigang1992/react.git
synced 2026-05-28 06:55:21 +08:00
19 lines
373 B
TypeScript
19 lines
373 B
TypeScript
import React from 'react'
|
|
import { Spacer, Code } from 'components'
|
|
|
|
export interface AttributesTitleProps {
|
|
}
|
|
|
|
const AttributesTitle: React.FC<React.PropsWithChildren<AttributesTitleProps>> = React.memo(({
|
|
children,
|
|
}) => {
|
|
return (
|
|
<>
|
|
<h4 className="title"><Code>{children}</Code></h4>
|
|
<Spacer y={.6} />
|
|
</>
|
|
)
|
|
})
|
|
|
|
export default AttributesTitle
|