'use server'

import AdminPanel from "@/components/server/admin/adminPanel";
import { AuthProps } from "@/providers/providers";
import { ReactNode } from "react";



interface Props {
    children?: ReactNode;
    slug?: string;
}

export default async function ServerAdminPanel(props:Props){
    return <AdminPanel slug={props.slug?props.slug:'home'}>{props.children}</AdminPanel>
}