import { Text } from "preact-i18n"; import styles from "./UserPicker.module.scss"; import { useUsers } from "../../revoltjs/hooks"; import Modal from "../../../components/ui/Modal"; import { Friend } from "../../../pages/friends/Friend"; interface Props { users: string[]; onClose: () => void; } export function PendingRequests({ users: ids, onClose }: Props) { const users = useUsers(ids); return ( } onClose={onClose}>
{ users .filter(x => typeof x !== 'undefined') .map(x => ) }
); }