import { Txn } from '../../../common/txn' import { Avatar } from '../avatar' import { useUserById } from '../../hooks/use-users' import { UserLink } from '../user-page' import { manaToUSD } from '../../pages/charity/[charitySlug]' import { RelativeTimestamp } from '../relative-timestamp' export function Donation(props: { txn: Txn }) { const { txn } = props const user = useUserById(txn.fromId) if (!user) { return <>Loading... } return (

{' '} donated {manaToUSD(txn.amount)}

) }