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),
)
},
})