import 'package:aman_kassa_flutter/shared/app_colors.dart';
import 'package:flutter/material.dart';

class TextLink extends StatelessWidget {
  final String text;
  final Function? onPressed;
  const TextLink(this.text, {this.onPressed});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () => onPressed,
      child: Text(
        text,
        style: TextStyle(fontWeight: FontWeight.w700, fontSize: 14, color: textColor),
      ),
    );
  }
}
