1 import { CommunityModeratorView } from "lemmy-js-client";
2 import { UserService } from "../../services";
4 export default function amTopMod(
5 mods: CommunityModeratorView[],
6 myUserInfo = UserService.Instance.myUserInfo,
8 return mods.at(0)?.moderator.id === myUserInfo?.local_user_view.person.id;