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