1 import { isMod } from "@utils/roles";
2 import { CommunityModeratorView } from "lemmy-js-client";
3 import { UserService } from "../../services";
5 export default function amMod(
6 mods?: CommunityModeratorView[],
7 myUserInfo = UserService.Instance.myUserInfo,
9 return myUserInfo ? isMod(myUserInfo.local_user_view.person.id, mods) : false;