import { Suspense } from "react";
import { Center, Loader } from "@mantine/core";
import PageBody from "@/app/attributes/components/PageBody";
import { AttributesContextProvider } from "@/app/attributes/contexts/AttributesContext";
import PageContainer from "@/components/layout/PageContainer/PageContainer";

export default async function AttributesPage() {
    return (
        <Suspense
            fallback={
                <Center h="50vh">
                    <Loader size="lg" />
                </Center>
            }>
            <PageContainer>
                <AttributesContextProvider>
                    <PageBody />
                </AttributesContextProvider>
            </PageContainer>
        </Suspense>
    );
}
