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

/// A widget that displays the primary action buttons (Sign Up and Log In)
/// for the Get Started page.
class GetStartedActions extends StatelessWidget {
  /// Void callback for when the Sign Up button is pressed.
  final VoidCallback onSignUpPressed;

  /// Void callback for when the Log In button is pressed.
  final VoidCallback onLoginPressed;

  /// Creates a [GetStartedActions].
  const GetStartedActions({
    super.key,
    required this.onSignUpPressed,
    required this.onLoginPressed,
  });

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: <Widget>[
        // Sign Up Button
        UiButton.primary(
          text: t.staff_authentication.get_started_page.sign_up_button,
          onPressed: onSignUpPressed,
        ),

        const SizedBox(height: 12),

        // Log In Button
        UiButton.secondary(
          text: t.staff_authentication.get_started_page.log_in_button,
          onPressed: onLoginPressed,
        ),
      ],
    );
  }
}
