import 'package:flutter/material.dart';
import '../../../../../core/constants/colors.dart';

class TitleContent extends StatelessWidget {
  final String title;
  final VoidCallback onSeeAllTap;

  const TitleContent({
    super.key,
    required this.title,
    required this.onSeeAllTap,
  });

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        Text(
          title,
          style: const TextStyle(
            fontWeight: FontWeight.w500,
            fontSize: 16.0,
          ),
        ),
        InkWell(
          onTap: onSeeAllTap,
          child: const Text(
            'Lihat Semua',
            style: TextStyle(
              fontSize: 12,
              fontWeight: FontWeight.w500,
              color: AppColors.primary,
            ),
          ),
        ),
      ],
    );
  }
}
