Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

317 B
Raw Blame
import { isMacOS } from './platform';

const macOS = isMacOS();

export const getCommand = (cmd: '$mod' | '$shift' | '$alt' | string) => {
  if (cmd === '$mod') return macOS ? '⌘' : 'Ctrl';
  if (cmd === '$alt') return macOS ? '⌥' : 'Alt';
  if (cmd === '$shift') return macOS ? '⇧' : 'Shift';
  return cmd;
};