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

import 'package:superport_v2/core/permissions/permission_manager.dart';
import 'package:superport_v2/core/theme/superport_shad_theme.dart';

Widget buildTestApp(Widget child, {PermissionManager? permissionManager}) {
  return PermissionScope(
    manager: permissionManager ?? PermissionManager(),
    child: ShadApp(
      debugShowCheckedModeBanner: false,
      theme: SuperportShadTheme.light(),
      darkTheme: SuperportShadTheme.dark(),
      home: ScaffoldMessenger(child: Scaffold(body: child)),
    ),
  );
}
