chore: rename Dirs
This commit is contained in:
19
src/Element/FollowsList.tsx
Normal file
19
src/Element/FollowsList.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { useMemo } from "react";
|
||||
import useFollowsFeed from "Feed/FollowsFeed";
|
||||
import { HexKey } from "Nostr";
|
||||
import FollowListBase from "Element/FollowListBase";
|
||||
import { getFollowers} from "Feed/FollowsFeed";
|
||||
|
||||
export interface FollowsListProps {
|
||||
pubkey: HexKey
|
||||
}
|
||||
|
||||
export default function FollowsList({ pubkey }: FollowsListProps) {
|
||||
const feed = useFollowsFeed(pubkey);
|
||||
|
||||
const pubkeys = useMemo(() => {
|
||||
return getFollowers(feed, pubkey);
|
||||
}, [feed]);
|
||||
|
||||
return <FollowListBase pubkeys={pubkeys} title={`Following ${pubkeys?.length}`} />
|
||||
}
|
Reference in New Issue
Block a user