1
0
mirror of https://github.com/elk-zone/elk synced 2025-01-08 02:42:50 +09:00
elk/components/common/RichContent.ts

17 lines
350 B
TypeScript
Raw Normal View History

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