import Dashboard from "src/components/layouts/Dashboard";
import AppPermission from "@/middlewares/AppPermission";
import CallWidget from "@/components/layouts/Dashboard/CallWidget";

const DashboardLayout = (props) => {
    const permissions = ["NEXT_PUBLIC_HAS_WIDGET"];
    return (
        <>
            <Dashboard {...props}/>
            <AppPermission permissions={permissions}>
                <CallWidget />
            </AppPermission>
        </>
    );
};

export default DashboardLayout;
