@justeattakeaway/pie-icons-vue
Version:
Shared PIE Icon Components for Vue.js.
33 lines (31 loc) • 1.08 kB
JavaScript
import _mergeJSXProps from '@vue/babel-helper-vue-jsx-merge-props';
import { iconSize, updateContextData } from '@justeattakeaway/pie-icons-configs/configs-vue';
export default {
name: 'IconFlagSwitzerland',
props: {
size: iconSize.regular,
},
functional: true,
render (h, ctx) {
ctx.data = updateContextData(ctx, 'c-pieIcon c-pieIcon--switzerland', 'IconFlagSwitzerland');
return h('svg', _mergeJSXProps([{
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
role: 'presentation',
focusable: 'false',
fill: 'currentColor',
viewBox: '0 0 16 16',
},
}, ctx.data]), [h('path', {
attrs: {
fill: '#D80027',
d: 'M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Z',
},
}), h('path', {
attrs: {
fill: '#EEE',
d: 'M11.653 6.783H9.22V4.35H6.783v2.433H4.35v2.434h2.433v2.433h2.434V9.217h2.433l.003-2.434Z',
},
})]);
},
};