1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 17:39:59 +00:00
elk/components/common/RichContent.ts
2022-11-23 07:08:36 +08:00

17 lines
350 B
TypeScript

export default defineComponent({
props: {
content: {
type: String,
required: true,
},
},
setup(props) {
const serverInfos = useServerInfo(currentServer.value)
return () => h(
'div',
{ class: 'rich-content' },
contentToVNode(props.content, undefined, serverInfos.value?.customEmojis),
)
},
})