-
-
+ {footerText}
+
+
+ }
+ >
+ {nextLabel}
+
+
>
);
};
const selectTableStyles = css({
- maxHeight: 300,
+ height: 300,
+ overflow: 'scroll',
});
+function SelectCollectionsStep({
+ collections,
+ selectedCollections,
+ onCollectionsSelect,
+}: {
+ collections: string[];
+ selectedCollections: string[];
+ onCollectionsSelect: (colls: string[]) => void;
+}) {
+ const [searchTerm, setSearchTerm] = useState('');
+ const filteredCollections = useMemo(() => {
+ try {
+ const regex = new RegExp(searchTerm, 'i');
+ return collections.filter((x) => regex.test(x));
+ } catch {
+ return collections;
+ }
+ }, [collections, searchTerm]);
+ return (
+