2022-01-08 17:16:22 -08:00
|
|
|
import { reportDialog } from 'utilities/reportDialog';
|
|
|
|
|
2022-01-08 15:55:12 -08:00
|
|
|
export function answerboxReportHandler(event: Event): void {
|
|
|
|
event.preventDefault();
|
|
|
|
const button = event.target as HTMLButtonElement;
|
|
|
|
const answerId = button.dataset.aId;
|
|
|
|
|
2022-01-08 17:16:22 -08:00
|
|
|
reportDialog('answer', answerId);
|
2022-01-08 15:55:12 -08:00
|
|
|
}
|