import { EditorProps, EditorAppearance } from '../types';

const messageEditorPropsPreset: EditorProps = {
  appearance: 'message',

  saveOnEnter: true,

  allowTextFormatting: true,
  allowLists: true,
  allowTextColor: true,
  allowHyperlinks: true,
  allowCodeBlocks: true,
  allowTasksAndDecisions: true
};

export default function getPropsPreset(appearance: EditorAppearance): EditorProps {
  switch (appearance) {
    case 'message':
      return { ...messageEditorPropsPreset };
    default:
      return {};
  }
}
