diff --git a/apps/builder/src/features/blocks/integrations/zemanticAi/ProjectsDropdown.tsx b/apps/builder/src/features/blocks/integrations/zemanticAi/ProjectsDropdown.tsx deleted file mode 100644 index 0738196be..000000000 --- a/apps/builder/src/features/blocks/integrations/zemanticAi/ProjectsDropdown.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import { Select } from '@/components/inputs/Select' -import { useTypebot } from '@/features/editor/providers/TypebotProvider' -import { useWorkspace } from '@/features/workspace/WorkspaceProvider' -import { useToast } from '@/hooks/useToast' -import { trpc } from '@/lib/trpc' - -type Props = { - credentialsId: string - blockId: string - defaultValue: string - onChange: (projectId: string | undefined) => void -} - -export const ProjectsDropdown = ({ - defaultValue, - onChange, - credentialsId, -}: Props) => { - const { typebot } = useTypebot() - const { workspace } = useWorkspace() - const { showToast } = useToast() - - const { data } = trpc.zemanticAI.listProjects.useQuery( - { - credentialsId, - workspaceId: workspace?.id as string, - }, - { - enabled: !!typebot && !!workspace, - onError: (error) => { - showToast({ - description: error.message, - status: 'error', - }) - }, - } - ) - - return ( -