import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:tanami_app/core/routes/routes.dart';
import 'package:tanami_app/core/styles/app_color.dart';
import 'package:tanami_app/core/styles/app_text.dart';

import '../../../../shared/components/text_widget.dart';

class AccountDeletionDialog extends StatelessWidget {
  const AccountDeletionDialog({super.key});

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: AppColor.plainWhite,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(20),
      ),
      title: Column(
        crossAxisAlignment: CrossAxisAlignment.end,
        children: [
          IconButton(
            icon: const Icon(
              Icons.close_sharp,
              color: AppColor.hintTextColor,
            ),
            onPressed: () {
              goRouter.pop();
            },
          ),
          TextWidget().text17W700(
            AppText.weHaveReceivedYourRequestToDeleteAccount,
            clr: AppColor.textLabelColor,
          ),
        ],
      ),
      content: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          TextWidget().text15W500(
            AppText.theRequestWillBeProcessed,
            clr: AppColor.hintTextColor,
          ),
          const Gap(20),
          GestureDetector(
            onTap: () {
              goRouter.pop();
            },
            child: TextWidget().text14W500(AppText.closeText,
                textDecoration: TextDecoration.underline,
                clr: AppColor.otpTextColor),
          ),
        ],
      ),
    );
  }
}
