import Vue from 'vue/dist/vue'
Vue.component('brick-tree', {
    props: [
        'rootBrick',
        'builder',
    ],
    template: `
    <div class="brick-tree builder">
        <div v-if="rootBrick !== null">
            <brick 
                :brick="rootBrick" 
                :parentBrick="null"
                :builder="builder"
            />
        </div>
      <div v-else>Error: no brick provided</div>
    </div>
  `,
});