import React from 'react'; import CategoryIcon from '~/components/Prompts/Groups/CategoryIcon'; import { Label } from '~/components/ui'; export default function ListCard({ category, name, snippet, onClick, children, }: { category: string; name: string; snippet: string; onClick?: React.MouseEventHandler; children?: React.ReactNode; }) { const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); onClick?.(event as unknown as React.MouseEvent); } }; return (
{children}
{snippet}
); }