import { getConfig } from "@/libs/axios/modules/config";
import { ConfigModel } from "@/models";
import Footer from "./Footer";

export default async function FooterServer() {
    let config: ConfigModel | null = null;

    try {
        const res = await getConfig();
        config = res.data?.data ?? null;
    } catch {
        config = null;
    }

    return <Footer config={config} />;
}
