import 'package:core_localization/core_localization.dart';
import 'package:design_system/design_system.dart';
import 'package:flutter/material.dart';


/// Header widget for the staff home page, using design system tokens.
class HomeHeader extends StatelessWidget {
  /// Creates a [HomeHeader].
  const HomeHeader({super.key});

  @override
  Widget build(BuildContext context) {
    final headerI18n = t.staff.home.header;
    return Padding(
      padding: EdgeInsets.fromLTRB(
        UiConstants.space4,
        UiConstants.space4,
        UiConstants.space4,
        UiConstants.space3,
      ),
      child:Row(
            children: [
              Container(
                width: 48,
                height: 48,
                decoration: BoxDecoration(
                  shape: BoxShape.circle,
                  border: Border.all(
                    color: UiColors.primary.withOpacity(0.2),
                    width: 2,
                  ),
                ),
                child: CircleAvatar(
                  backgroundColor: UiColors.primary.withOpacity(0.1),
                  child: const Text(
                    'K',
                    style: TextStyle(
                      color: UiColors.primary,
                      fontWeight: FontWeight.bold,
                    ),
                  ),
                ),
              ),
              const SizedBox(width: UiConstants.space3),
              Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: [
                  Text(
                    headerI18n.welcome_back,
                    style: UiTypography.body3r.copyWith(color: UiColors.mutedForeground),
                  ),
                  Text(
                    headerI18n.user_name_placeholder,
                    style: UiTypography.headline4m,
                  ),
                ],
              ),
            ],
          ),
    );
  }
}
