2019-02-19 04:55:44 +01:00
|
|
|
import ReportDialog from '../components/ReportDialog.html'
|
|
|
|
import { showDialog } from './showDialog'
|
2021-04-12 04:40:18 +02:00
|
|
|
import { formatIntl } from '../../../_utils/formatIntl'
|
2019-02-19 04:55:44 +01:00
|
|
|
|
|
|
|
export default function showReportDialog ({ account, status }) {
|
2021-04-12 04:40:18 +02:00
|
|
|
const label = formatIntl('intl.reportAccount', { account: `@${account.acct}` })
|
2019-02-19 04:55:44 +01:00
|
|
|
return showDialog(ReportDialog, {
|
2021-04-12 04:40:18 +02:00
|
|
|
label,
|
|
|
|
title: label,
|
2019-02-19 04:55:44 +01:00
|
|
|
account,
|
|
|
|
status
|
|
|
|
})
|
|
|
|
}
|