import * as React from 'react'; import { useSearch } from 'wouter'; import { Antwerp } from '../antwerp.js'; import { Box } from '../preshape/box/box.js'; import { Text } from '../preshape/Text/Text.js'; import { Configuration } from './configuration.js'; import { getUrlParams } from './utils/get-url-params.js'; interface Props extends Configuration { active: boolean; onClick: (configuration: string) => void; } function LibraryEntry(props: Props) { const { active, cundyRollett, gomJauHogg, onClick, vertices, wallpaper, ...rest } = props; const searchParamsStr = useSearch(); const { colorMethod, colorScale } = getUrlParams(searchParamsStr); return ( onClick(gomJauHogg)} href="" // padding="x3" > {cundyRollett}
{gomJauHogg} {vertices} {wallpaper}
); } export { LibraryEntry }