import 'package:concierge/presentation/theme/app_colors.dart';
import 'package:flutter/material.dart';

class BevelledAppBar extends StatelessWidget {
  const BevelledAppBar({super.key, this.showClose = true, this.showBack = false});

  final bool showClose;
  final bool showBack;

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 100,
      decoration: BoxDecoration(
        color: AppColors.colorSecondary,
        borderRadius: BorderRadius.vertical(bottom: Radius.circular(24)),
      ),
      child: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.end,
          children: [
            if (showBack) BackButton(),
            Spacer(),
            if (showClose) CloseButton(color: Colors.black),
          ],
        ),
      ),
    );
  }
}