mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 17:39:59 +00:00
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),
|
|
)
|
|
},
|
|
})
|