import { Image } from '@lume/shared/image'; import { DEFAULT_AVATAR, IMGPROXY_URL } from '@lume/stores/constants'; import { useProfile } from '@lume/utils/hooks/useProfile'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; dayjs.extend(relativeTime); export const NoteRepostUser = ({ pubkey, time }: { pubkey: string; time: number }) => { const { user } = useProfile(pubkey); return (
{pubkey}
{user?.display_name || user?.name ||
} {' '} reposted
ยท {dayjs().to(dayjs.unix(time), true)}
); };