1 import { communitySelectName } from "@utils/app";
2 import { Choice } from "@utils/types";
3 import { CommunityView } from "lemmy-js-client";
5 export default function communityToChoice(cv: CommunityView): Choice {
7 value: cv.community.id.toString(),
8 label: communitySelectName(cv),