mirrored_repositories/Pretty-Ui/Ngamar/lib/core/common
import 'package:flutter/material.dart';
import 'package:ngamar/core/utils/utils.dart';

class CustomTextButton extends StatelessWidget {
  final VoidCallback onPressed;
  final String text;
  final Color? color;
  final double? fontSize;
  const CustomTextButton({
    required this.onPressed,
    required this.text,
    this.fontSize,
    this.color,
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return TextButton(
      onPressed: onPressed,
      child: Text(
        text,
        style: AppTypography.kMedium14.copyWith(
          color: color ?? AppColors.kError,
          fontSize: fontSize,
        ),
      ),
    );
  }
}
