import clsx from 'clsx' import removeMarkdown from 'remove-markdown' import { ProposalCardProps } from '@dao-dao/types/components/ProposalCard' import { extractProposalDescriptionAndMetadata } from '@dao-dao/utils' import { useDaoNavHelpers } from '../../hooks' import { DaoImage } from '../dao/DaoImage' export const ProposalCard = ({ dao: { name, coreAddress, imageUrl }, id, title, description, info, className, onMouseOver, onMouseLeave, LinkWrapper, }: ProposalCardProps) => { const { getDaoProposalPath } = useDaoNavHelpers() return (

{id}

{title}

{removeMarkdown( extractProposalDescriptionAndMetadata(description).description )}

{info.map(({ Icon, label }, index) => (

{label}

))}
) }