mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-26 11:55:52 +00:00
f0ccf93735
* Start modifying settings * feat: Finish making block instance setting * feat: Add translations * fix: Handle first load fetch * chore: Fix linting error * fix: Fix broken import
9 lines
224 B
TypeScript
9 lines
224 B
TypeScript
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,
|
|
};
|
|
}
|