import { Avatar } from 'flowbite-react' import { Entity, MegalodonInterface } from 'megalodon' import dayjs from 'dayjs' import Body from './Body' import Media from './Media' import emojify from '@/utils/emojify' import Card from './Card' import Poll from './Poll' import { FormattedMessage } from 'react-intl' type Props = { status: Entity.Status client: MegalodonInterface onRefresh: (status: Entity.Status) => void } export default function Status(props: Props) { const status = originalStatus(props.status) const onRefresh = async () => { const res = await props.client.getStatus(status.id) props.onRefresh(res.data) } return (