2022-02-01 18:06:42 +00:00
|
|
|
import clsx from 'clsx'
|
|
|
|
import { Fold } from '../../common/fold'
|
|
|
|
|
|
|
|
export function FoldTag(props: { fold: Fold }) {
|
|
|
|
const { fold } = props
|
|
|
|
const { name } = fold
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className={clsx(
|
2022-02-11 18:40:22 +00:00
|
|
|
'rounded-full bg-white px-4 py-2 shadow-md hover:bg-gray-100',
|
2022-02-01 18:06:42 +00:00
|
|
|
'cursor-pointer'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
<span className="text-gray-500">{name}</span>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|