2022-01-08 17:16:22 -08:00
|
|
|
import { reportDialog } from 'utilities/reportDialog';
|
|
|
|
|
2022-01-08 15:56:28 -08:00
|
|
|
export function commentReportHandler(event: Event): void {
|
|
|
|
event.preventDefault();
|
|
|
|
const button = event.target as HTMLButtonElement;
|
|
|
|
const commentId = button.dataset.cId;
|
|
|
|
|
2022-01-08 17:16:22 -08:00
|
|
|
reportDialog('comment', commentId);
|
2022-01-08 15:56:28 -08:00
|
|
|
}
|