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

501 B
Raw Blame
import { ProjectType } from '@activepieces/shared';

import { projectCollectionUtils } from '@/features/projects';

import { PersonalProjectAlerts } from './personal-project-alerts';
import { TeamProjectAlerts } from './team-project-alerts';

export const AlertsSettings = () => {
  const { project: currentProject } =
    projectCollectionUtils.useCurrentProject();

  if (currentProject?.type === ProjectType.PERSONAL) {
    return <PersonalProjectAlerts />;
  }

  return <TeamProjectAlerts />;
};