import 'package:flutter/material.dart';
import 'package:line_icons/line_icons.dart';

import '../../../../../common/validator/validator.dart';
import '../../../../components/field/field.dart';

class LoginEmailField extends StatelessWidget {
  final TextEditingController? controller;
  const LoginEmailField({super.key, this.controller});

  @override
  Widget build(BuildContext context) {
    return AppTextFormField(
      title: 'Email',
      hintText: 'Enter your email',
      prefixIcon: LineIcons.envelope,
      validator: AppValidator.validateEmail,
      controller: controller,
    );
  }
}
