refactor: rename components

This commit is contained in:
Anthony Fu 2022-11-23 10:22:18 +08:00
parent a4d235b6fe
commit df9ee293a7
9 changed files with 11 additions and 2 deletions

View file

@ -1,24 +0,0 @@
import type { Emoji } from 'masto'
import type { PropType } from 'vue'
import { emojisArrayToObject } from '~/composables/utils'
export default defineComponent({
props: {
content: {
type: String,
required: true,
},
emojis: {
type: Array as PropType<Emoji[]>,
},
},
setup(props) {
const emojiObject = emojisArrayToObject(props.emojis || [])
return () => h(
'div',
{ class: 'rich-content' },
contentToVNode(props.content, undefined, emojiObject),
)
},
})