diff --git a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/create-chunk-modal/create-chunk-modal.tsx b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/create-chunk-modal/create-chunk-modal.tsx index 3a4449f0103..eb6dc023262 100644 --- a/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/create-chunk-modal/create-chunk-modal.tsx +++ b/apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/components/create-chunk-modal/create-chunk-modal.tsx @@ -1,9 +1,15 @@ 'use client' import { useRef, useState } from 'react' -import { AlertCircle, Loader2, X } from 'lucide-react' +import { AlertCircle, Loader2 } from 'lucide-react' import { Button, Textarea } from '@/components/emcn' -import { Modal, ModalContent, ModalTitle } from '@/components/emcn/components/modal/modal' +import { + Modal, + ModalBody, + ModalContent, + ModalFooter, + ModalHeader, +} from '@/components/emcn/components/modal/modal' import { Label } from '@/components/ui/label' import { createLogger } from '@/lib/logs/console/logger' import type { ChunkData, DocumentData } from '@/stores/knowledge/store' @@ -113,132 +119,107 @@ export function CreateChunkModal({ return ( <> - - {/* Modal Header */} -
-
- - Create Chunk - - -
-
- - {/* Modal Body */} -
-
- {/* Scrollable Content */} -
-
-
- {/* Document Info Section */} -
-
-
-

- {document?.filename || 'Unknown Document'} -

-

- Adding chunk to this document -

-
-
- - {/* Error Display */} - {error && ( -
- -

{error}

-
- )} -
- - {/* Content Input Section - Expands to fill space */} -
- -