51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
// Metro module 8461 (f8462).
|
|
import { GuildVisibility } from "./GuildTraits";
|
|
import { intl, t } from "../../intl/index.native";
|
|
import { BadgeCategory } from "./BadgeCategory";
|
|
export function getBadgeTooltip(a0, a1) {
|
|
const tooltipDescription = a1 === GuildVisibility.PUBLIC ? intl.string(t.op2cJ6) : a1 === GuildVisibility.APPLY_TO_JOIN ? intl.string(t.YwZfbt) : intl.string(t.TME4LJ);
|
|
if (BadgeCategory.STAFF === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.lMrv96),
|
|
tooltipSubtitle: intl.string(t.lMrv96),
|
|
tooltipDescription: intl.string(t.lMrv96)
|
|
};
|
|
}
|
|
if (BadgeCategory.VERIFIED === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.K7iRig),
|
|
tooltipSubtitle: intl.string(t.iCehw9),
|
|
tooltipDescription
|
|
};
|
|
}
|
|
if (BadgeCategory.PARTNERED === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.K7iRig),
|
|
tooltipSubtitle: intl.string(t.hfYfEE),
|
|
tooltipDescription
|
|
};
|
|
}
|
|
if (BadgeCategory.VERIFIED_AND_PARTNERED === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.K7iRig),
|
|
tooltipSubtitle: intl.string(t["TX+iFC"]),
|
|
tooltipDescription
|
|
};
|
|
}
|
|
if (BadgeCategory.COMMUNITY === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.K7iRig),
|
|
tooltipDescription
|
|
};
|
|
}
|
|
if (BadgeCategory.DISCOVERABLE === a0) {
|
|
return {
|
|
tooltipTitle: intl.string(t.K7iRig),
|
|
tooltipDescription: intl.string(t.op2cJ6)
|
|
};
|
|
}
|
|
return {
|
|
tooltipTitle: intl.string(t["iZRkC/"])
|
|
};
|
|
}
|