import { message } from 'ant-design-vue'
import CopyableIcon from './CopyableIcon'
const Category = {
props: ['icons', 'title', 'newIcons', 'theme'],
data () {
return {
justCopied: null,
}
},
methods: {
onCopied (type, text) {
message.success({text}
copied 🎉)
this.justCopied = type
setTimeout(() => {
this.justCopied = null
}, 2000)
},
},
render () {
const {
icons, title,
theme, newIcons,
} = this.$props
const items = icons.map((name) => {
return (
= 0}
justCopied={this.justCopied}
onCopied={this.onCopied}
/>
)
})
const message = this.$t('message')
return (
{message[`app.docs.components.icon.category.${title}`]}
)
},
}
export default Category