mirror of
https://github.com/elk-zone/elk
synced 2025-01-08 19:02:48 +09: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),
|
|
)
|
|
},
|
|
})
|