20 lines
662 B
TypeScript
20 lines
662 B
TypeScript
// Metro module 12392 (f12393).
|
|
import AccessibilityStore from "../../a11y/AccessibilityStore";
|
|
import UserStore from "../../../stores/UserStore";
|
|
export function createDisplayNameStylesMobile(a0, a1) {
|
|
const currentUser = UserStore.getCurrentUser();
|
|
let displayNameStyles = a0.displayNameStyles;
|
|
if (currentUser != null && currentUser.id === a0.id) {
|
|
displayNameStyles = currentUser.displayNameStyles;
|
|
}
|
|
let fontId = a1 == null ? void 0 : a1.displayNameStyles?.fontId;
|
|
if (fontId == null) {
|
|
fontId = displayNameStyles?.fontId;
|
|
}
|
|
if (fontId != null && AccessibilityStore.displayNameStylesEnabled) {
|
|
return {
|
|
fontId
|
|
};
|
|
}
|
|
}
|