import {ComponentExample} from './preview-component.js'; import {ThemeSelect} from './theme-select'; export const ComponentPage = { props: ['components', 'id', 'query'], components: { 'component-example': ComponentExample, 'theme-select': ThemeSelect }, computed: { component() { return this.components.filter(component => component.id === this.id)[0]; } }, template: `
{{component.markup}}