mirrored_repositories/HistoryOfMe/lib
part of widgets;

class UserIcon extends StatelessWidget {
  final UserData userData;
  final double size;
  final void Function()? onPressed;
  const UserIcon({
    Key? key,
    required this.size,
    required this.userData,
    this.onPressed,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return LitUserIcon(
      size: size,
      name: userData.name,
      color: Color(userData.primaryColor),
      accentColor: Color(userData.secondaryColor),
      onPressed: onPressed,
    );
  }
}
