mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 08:29:57 +00:00
9687330dd4
resolves #176
18 lines
347 B
TypeScript
18 lines
347 B
TypeScript
import type { Emoji } from 'masto'
|
|
import { emojisArrayToObject } from '~/composables/utils'
|
|
|
|
defineOptions({
|
|
name: 'ContentRich',
|
|
})
|
|
|
|
const props = defineProps<{
|
|
content: string
|
|
emojis?: Emoji[]
|
|
}>()
|
|
|
|
export default () => h(
|
|
'span',
|
|
{ class: 'content-rich' },
|
|
contentToVNode(props.content, emojisArrayToObject(props.emojis || [])),
|
|
)
|