summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/components/edit_header.vue
blob: 5660bfbe5aeaa05092e4e3c3bf50b3e5f93c9767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
import { DEFAULT_HEADING } from '../constants';

export default {
  props: {
    title: {
      type: String,
      required: false,
      default: '',
    },
  },
  computed: {
    heading() {
      return this.title || DEFAULT_HEADING;
    },
  },
};
</script>
<template>
  <div>
    <h3 ref="sseHeading">{{ heading }}</h3>
  </div>
</template>