"use client";

import { useWorkspace } from "@/components/providers/workspace-provider";
import { DemoBanner } from "@/components/demo-banner";

interface DashboardLayoutContentProps {
  children: React.ReactNode;
}

export const DashboardLayoutContent: React.FC<DashboardLayoutContentProps> = ({
  children,
}) => {
  const { isDemoMode } = useWorkspace();

  return (
    <div className="flex flex-col min-h-full">
      {isDemoMode && <DemoBanner />}
      <div className="flex-1">{children}</div>
    </div>
  );
};

