import { Button, Dialog, DialogBody, DialogHeader, Textarea, Typography } from '@material-tailwind/react' import { Entity, MegalodonInterface } from 'megalodon' import { FormattedMessage } from 'react-intl' type Props = { open: boolean close: () => void status: Entity.Status client: MegalodonInterface } export default function Report(props: Props) { const submit = async () => { const comment = document.getElementById('comment') as HTMLTextAreaElement await props.client.report(props.status.account.id, { status_ids: [props.status.id], comment: comment.value, forward: true }) props.close() } return (