import React, { useEffect, useRef, useState } from 'react'; import { useSearchUIContext, useSearchUIContextActions } from '../SearchUIContextProvider'; import { Paginator } from '../../Paginator'; import { DataCard } from '../../DataCard'; /** * NOT IMPLEMENTED * Component for rendering SearchUI results in the cards view * Will use the DataCard component to render results as a grid * of cards where each shows an image and a few select data properties. */ export const SearchUIDataCards: React.FC = () => { const { state, query } = useSearchUIContext(); const actions = useSearchUIContextActions(); const handlePageChange = (page: number) => { actions.setPage(page); }; const CustomPaginator = () => ( ); return (
{state.results!.map((d, i) => ( } /> ))}
); };