Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

454 B
Raw Blame
import { FeatureBanner } from '@/app/components/feature-banner';
import { platformHooks } from '@/hooks/platform-hooks';

export function PiecesLockedBanner({ message }: PiecesLockedBannerProps) {
  const { platform } = platformHooks.useCurrentPlatform();

  if (platform.plan.managePiecesEnabled) {
    return null;
  }

  return <FeatureBanner message={message} className="shrink-0" />;
}

export type PiecesLockedBannerProps = {
  message: string;
};