import { Button, Input, Space } from 'antd'; import { SearchOutlined, PlusOutlined } from '@ant-design/icons'; import React from 'react'; import { ImportExportButtons } from './ImportExportButtons'; import { Library } from './types'; interface SearchBarProps { searchText: string; onSearchTextChange: (text: string) => void; onSearch: () => void; onAdd: () => void; onImportSuccess: () => void; data: Library[]; } export const SearchBar: React.FC = ({ searchText, onSearchTextChange, onSearch, onAdd, onImportSuccess, data, }) => { return (
onSearchTextChange(e.target.value)} onPressEnter={onSearch} prefix={} />
); };