mirrored_repositories/dungeon-paper-app/lib/app/widgets
import 'package:flutter/material.dart';

class PopupMenuItemListTile extends StatelessWidget {
  const PopupMenuItemListTile({
    super.key,
    required this.label,
    this.icon,
  });

  final Widget label;
  final Widget? icon;

  @override
  Widget build(BuildContext context) {
    if (icon == null) {
      return label;
    }

    return Row(
      children: [icon!, const SizedBox(width: 8), label],
    );
  }
}
