import { AboutHero, AboutIntro, AboutMission, AboutFeatures, AboutNews } from "../components/about";
import { aboutApi } from "../../api/aboutApi";

export default async function AboutPage() {
    const data = await aboutApi.getAbout();

    if (!data) {
        return null;
    }

    return (
        <>
            <AboutHero data={data.hero} />
            <AboutIntro data={data.intro} />
            <AboutMission data={data.mission} />
            <AboutFeatures data={data.features} />
            <AboutNews data={data.news} />
        </>
    );
}

