ghost/admin/app/components/gh-post-settings-menu/option-or-alt.js
import Component from '@glimmer/component';
import {htmlSafe} from '@ember/template';
const isMac = window.navigator.platform.startsWith('Mac');
export default class CtrlOrCmd extends Component {
get tooltip() {
return isMac ? 'Option' : '';
}
get character() {
const character = isMac ? '⌥' : 'Alt';
return htmlSafe(character);
}
get class() {
return isMac ? '' : 'mono';
}
}