2023-11-03 12:37:40 +01:00
|
|
|
import { Entity } from 'megalodon'
|
|
|
|
import { HTMLAttributes } from 'react'
|
|
|
|
import emojify from '@/utils/emojify'
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
status: Entity.Status
|
|
|
|
} & HTMLAttributes<HTMLElement>
|
|
|
|
|
|
|
|
export default function Body(props: Props) {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<div
|
2023-11-04 10:14:00 +01:00
|
|
|
className={props.className}
|
2023-11-03 12:37:40 +01:00
|
|
|
style={Object.assign({ wordWrap: 'break-word' }, props.style)}
|
|
|
|
dangerouslySetInnerHTML={{ __html: emojify(props.status.content, props.status.emojis) }}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|