<script>
import CodeEditor from './code-editor.vue';

export default {
  extends: CodeEditor,
  props: {
    value: {
      required: true,
      validator: value => value === null || typeof value === 'string',
      demoValue: 'function foo(a, b) {\n return a + b;\n}',
    },
  },
  data() {
    return {
      codeLanguage: 'js',
    };
  },
};
</script>
