import { html } from 'lit'; import { styleMap } from 'lit/directives/style-map.js'; import type { BlockHubItem } from '../config.js'; export function BlockHubCards( blockHubItems: BlockHubItem[], type: string, title: string, maxHeight: number, shouldDisplayCard: boolean, isGrabbing: boolean, showTooltip: boolean ) { const shouldScroll = maxHeight < 800; const styles = styleMap({ maxHeight: `${maxHeight}px`, overflowY: shouldScroll ? 'scroll' : 'unset', }); return html`