import React from 'react';
interface Props {
onImport: (filePath: string) => void;
}
export function ImportPanel({ onImport }: Props) {
return (
Import Documents
Use the import button or drag files here.
Supported: .txt, .md files
{
const file = e.target.files?.[0];
if (file) onImport(file.path);
}}
style={{ marginTop: '10px' }}
/>
);
}