feat: add Dot and Tag components for enhanced UI representation

This commit is contained in:
twwu 2024-12-11 13:31:21 +08:00
parent 8baaf7c84e
commit 033ce47d01
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import React from 'react'
const Dot = () => {
return (
<div className='text-text-quaternary text-xs font-medium'>·</div>
)
}
Dot.displayName = 'Dot'
export default React.memo(Dot)

View File

@ -0,0 +1,14 @@
import React from 'react'
const Tag = ({ text }: { text: string }) => {
return (
<div className='inline-flex items-center gap-x-0.5'>
<span className='text-text-quaternary text-xs font-medium'>#</span>
<span className='text-text-tertiary text-xs'>{text}</span>
</div>
)
}
Tag.displayName = 'Tag'
export default React.memo(Tag)