Commit 5978d1ec authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

refactor: remove unused CollectionProfile (#5229)

parent c0638e90
import { badge, subheadSmall } from '../../css/common.css'
import { Box, BoxProps } from '../Box'
import { Row } from '../Flex'
import { VerifiedIcon } from '../icons'
export const CollectionProfile = ({
label,
isVerified,
name,
avatarUrl,
...props
}: {
isVerified?: boolean
label: string
name?: string
avatarUrl?: string
} & BoxProps) => {
return (
<Row {...props}>
{avatarUrl ? (
<Box as="img" src={avatarUrl} height="36" width="36" marginRight="12" borderRadius="round" />
) : (
<Box role="img" background="fallbackGradient" height="36" width="36" marginRight="12" borderRadius="round" />
)}
<div>
<Box as="span" color="textSecondary" style={{ textTransform: 'uppercase' }} className={badge}>
{label}
</Box>
<Row marginTop="4" className={subheadSmall} color="textPrimary">
{name} {isVerified && <VerifiedIcon />}
</Row>
</div>
</Row>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment