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

17 lines
350 B
TypeScript
Raw Normal View History

2022-11-20 21:21:53 +00:00
export default defineComponent({
props: {
content: {
type: String,
required: true,
},
},
setup(props) {
2022-11-22 23:08:36 +00:00
const serverInfos = useServerInfo(currentServer.value)
return () => h(
'div',
{ class: 'rich-content' },
contentToVNode(props.content, undefined, serverInfos.value?.customEmojis),
)
2022-11-20 21:21:53 +00:00
},
})