import { Close } from '@mui/icons-material' import clsx from 'clsx' import { toAccessibleImageUrl } from '@dao-dao/utils' import { IconButton } from '../icon_buttons/IconButton' export type ContextPillProps = { imageUrl?: string name: string onClose?: () => void size?: 'sm' | 'default' className?: string } export const ContextPill = ({ imageUrl, name, onClose, size = 'default', className, }: ContextPillProps) => (
{name}
{onClose && (