import { DonationTxn } from 'common/txn' import { Avatar } from '../avatar' import { useUserById } from 'web/hooks/use-user' import { UserLink } from '../user-page' import { manaToUSD } from '../../../common/util/format' import { RelativeTimestamp } from '../relative-timestamp' export function Donation(props: { txn: DonationTxn }) { const { txn } = props const user = useUserById(txn.fromId) if (!user) { return <>Loading... } return (

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

) }