lemmy-ui/src/shared/utils/app/instance-to-choice.ts

10 lines
224 B
TypeScript
Raw Normal View History

import { Choice } from "@utils/types";
import { Instance } from "lemmy-js-client";
export default function instanceToChoice({ id, domain }: Instance): Choice {
return {
value: id.toString(),
label: domain,
};
}