use leptos::prelude::*;
use crate::components::layout::PageContent;
use crate::components::simple_hero::SimpleHero;
use crate::components::promotions_list::PromotionsList;
use crate::page::prelude::*;

#[component]
pub fn SharesPage() -> impl IntoView {
    view! {
        <SimpleHero
            icon=view! {
                <img
                    src="/icons/promotion-icon.svg"
                    alt="Promotion Icon"
                    class="w-16 h-16"
                    id="promotion-icon"
                />
            }.into_any()
            main_text=t8s!("Special Offers").to_string()
            sub_text=t8s!("Check out our latest promotions and discounts for premium proxy services").to_string()
        />
        
        <PageContent>
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8" id="promotion-content">
                <PromotionsList 
                    class="w-full"
                    id="main-promotions-list"
                />
            </div>
        </PageContent>
    }
}
