import * as Dialog from '@radix-ui/react-dialog'; import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { CancelIcon, StrangersIcon } from '@shared/icons'; import { User } from '@shared/user'; import { compactNumber } from '@utils/number'; export function UnknownsModal({ data }: { data: string[] }) { const navigate = useNavigate(); const [open, setOpen] = useState(false); const openChat = (pubkey: string) => { setOpen(false); navigate(`/chats/${pubkey}`); }; return (
{data.length} unknowns
All messages from people you not follow
{data.map((pubkey) => (
))}
); }