\n
\n\n {props.allowAttachments && (\n
\n
\n
\n {props.files?.map((file) => {\n return (\n {\n props.setFiles((files) => {\n if (!files) return null\n\n const filtered = Array.from(files).filter(\n (f) => f !== file\n )\n if (filtered.length === 0) return null\n return filtered\n })\n }}\n />\n )\n })}\n \n
\n
\n )}\n\n
\n {props.allowAttachments && (\n
\n )}\n {isGenerating && stop ? (\n
\n ) : (\n
\n )}\n
\n\n {props.allowAttachments &&
}\n
\n )\n}\nMessageInput.displayName = \"MessageInput\"\n\ninterface FileUploadOverlayProps {\n isDragging: boolean\n}\n\nfunction FileUploadOverlay({ isDragging }: FileUploadOverlayProps) {\n return (\n