reorganize code into smaller files & dirs
This commit is contained in:
15
packages/app/src/Components/User/BlockList.tsx
Normal file
15
packages/app/src/Components/User/BlockList.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import BlockButton from "@/Components/User/BlockButton";
|
||||
import ProfilePreview from "@/Components/User/ProfilePreview";
|
||||
import useModeration from "@/Hooks/useModeration";
|
||||
|
||||
export default function BlockList() {
|
||||
const { blocked } = useModeration();
|
||||
|
||||
return (
|
||||
<div className="main-content p">
|
||||
{blocked.map(a => {
|
||||
return <ProfilePreview actions={<BlockButton pubkey={a} />} pubkey={a} options={{ about: false }} key={a} />;
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user