forked from Mirrors/elk
17 lines
350 B
TypeScript
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),
|
|
)
|
|
},
|
|
})
|