import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sigap/src/features/auth/presentasion/controllers/signup/step/identity-verification/identity_verification_controller.dart';
import 'package:sigap/src/shared/widgets/verification/validation_message_card.dart';
import 'package:sigap/src/utils/constants/sizes.dart';

class VerificationStatusMessage extends StatelessWidget {
  final IdentityVerificationController controller;

  const VerificationStatusMessage({super.key, required this.controller});

  @override
  Widget build(BuildContext context) {
    return Obx(
      () =>
          controller.verificationMessage.value.isNotEmpty
              ? Padding(
                padding: const EdgeInsets.symmetric(
                  vertical: TSizes.spaceBtwItems,
                ),
                child: ValidationMessageCard(
                  message: controller.verificationMessage.value,
                  isValid: controller.isVerified.value,
                  hasConfirmed: false,
                ),
              )
              : const SizedBox.shrink(),
    );
  }
}
