import { computed } from 'vue'
import './index.less'
export default {
  name: 'CipSvgIcon',
  props: {
    name: String
  },
  setup (props) {
    const className = computed(() => {
      return `#icon-${props.name}`
    })
    return () => <svg class={['cip-svg-icon']} aria-hidden={'true'}>
      <use xlinkHref={className.value}></use>
    </svg>
  }
}
