mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
20 lines
445 B
JavaScript
20 lines
445 B
JavaScript
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 ? 'Control' : '';
|
|
}
|
|
|
|
get character() {
|
|
const character = isMac ? '⌃' : 'Ctrl';
|
|
return htmlSafe(character);
|
|
}
|
|
|
|
get class() {
|
|
return isMac ? '' : 'mono';
|
|
}
|
|
}
|