feat: n to 1 retrieval legacy (#6554)
This commit is contained in:
parent
e4bb943fe5
commit
6fe9aa69cc
35 changed files with 1329 additions and 249 deletions
25
web/app/components/base/badge.tsx
Normal file
25
web/app/components/base/badge.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { memo } from 'react'
|
||||
import cn from '@/utils/classnames'
|
||||
|
||||
type BadgeProps = {
|
||||
className?: string
|
||||
text: string
|
||||
}
|
||||
|
||||
const Badge = ({
|
||||
className,
|
||||
text,
|
||||
}: BadgeProps) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'inline-flex items-center px-[5px] h-5 rounded-[5px] border border-divider-deep system-2xs-medium-uppercase leading-3 text-text-tertiary',
|
||||
className,
|
||||
)}
|
||||
>
|
||||
{text}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default memo(Badge)
|
||||
Loading…
Add table
Add a link
Reference in a new issue