// report pin dialog
import 'package:acter/common/actions/report_content.dart';
import 'package:acter_flutter_sdk/acter_flutter_sdk_ffi.dart';
import 'package:flutter/material.dart';
import 'package:acter/l10n/generated/l10n.dart';

Future<void> showReportDialog(BuildContext context, ActerPin pin) async {
  final lang = L10n.of(context);
  await openReportContentDialog(
    context,
    title: lang.reportThisPin,
    description: lang.reportThisContent,
    eventId: pin.eventIdStr(),
    roomId: pin.roomIdStr(),
    senderId: pin.sender().toString(),
    isSpace: true,
  );
}
