use leptos::prelude::*;
use leptos_router::components::A;
use crate::components::layout::{PageContent, PageTitle, PageDescription, ButtonPrimary};
use crate::page::prelude::*;

#[component]
pub fn NotFound() -> impl IntoView {
    view! {
        <PageContent>
            <PageTitle title=t8s!("404 - Page Not Found").to_string()/>
            <PageDescription description=t8s!("The page you're looking for doesn't exist.").to_string()/>
            <div class="text-center mt-5">
                <A href="/" attr:class="inline-block">
                    <ButtonPrimary>{t8s!("Go Home")}</ButtonPrimary>
                </A>
            </div>
        </PageContent>
    }
}
