UNPKG

mod-arch-shared

Version:

Shared UI components and utilities for modular architecture micro-frontend projects

9 lines 569 B
import React from 'react'; import { SearchInput } from '@patternfly/react-core'; export const ManageColumnSearchInput = ({ value, placeholder = 'Filter by column name', onSearch, dataTestId = 'manage-column-search', }) => { const handleChange = React.useCallback((_, newValue) => { onSearch(newValue); }, [onSearch]); return (React.createElement(SearchInput, { "data-testid": dataTestId, placeholder: placeholder, value: value, onChange: handleChange, onClear: () => handleChange(null, '') })); }; //# sourceMappingURL=ManageColumnSearchInput.js.map