Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { Col } from 'web/components/layout/col'
|
|
import { Modal } from 'web/components/layout/modal'
|
|
import { Row } from 'web/components/layout/row'
|
|
import { Avatar } from 'web/components/widgets/avatar'
|
|
import { Notification } from 'common/notification'
|
|
import { NotificationUserLink } from './notifications/notification-helpers'
|
|
import { UserHovercard } from './user/user-hovercard'
|
|
|
|
export function MultiUserReactionModal(props: {
|
|
similarNotifications: Notification[]
|
|
modalLabel: string
|
|
open: boolean
|
|
setOpen: (open: boolean) => void
|
|
}) {
|
|
const { similarNotifications, modalLabel, open, setOpen } = props
|
|
return (
|
|
<Modal open={open} setOpen={setOpen} size={'sm'}>
|
|
<Col className="bg-canvas-0 items-start gap-4 rounded-md p-6">
|
|
<span className={'text-xl'}>{modalLabel}</span>
|
|
{similarNotifications.map((notif) => (
|
|
<Row
|
|
key={notif.sourceUserUsername + 'list'}
|
|
className="w-full items-center gap-2"
|
|
>
|
|
<UserHovercard userId={notif.userId}>
|
|
<Avatar
|
|
username={notif.sourceUserUsername}
|
|
avatarUrl={notif.sourceUserAvatarUrl}
|
|
/>
|
|
</UserHovercard>
|
|
<NotificationUserLink
|
|
name={notif.sourceUserName}
|
|
username={notif.sourceUserUsername}
|
|
/>
|
|
</Row>
|
|
))}
|
|
</Col>
|
|
</Modal>
|
|
)
|
|
}
|