import 'package:flutter/material.dart';

enum ImageEnums {
  employee,
  leave,
  cproject,
  cemployee,
  uemployee,
  pstage,
  question,
  umission,
  meeting,
  group,
  mchat
}

extension ImageExtensions on ImageEnums {
  String get _toPageImagePath => 'assets/images/page_images/pi_$name.png';
  Image get toPageImage => Image.asset(_toPageImagePath,
      errorBuilder: (context, error, stackTrace) =>
          const Icon(Icons.no_photography_outlined));
}
