All files / app-leaderboard/src/pages/components icon.ts

100% Statements 1/1
100% Branches 2/2
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11            1311x        
import { html, unsafeHTML } from '@be-music/service-web-theme/server';
/**
 * A Lucide icon inlined from `lucide-static`: no font to load, crisp at any size, drawn in the text colour. Decorative
 * (`aria-hidden`); the text next to it, or the control's label, says what it is.
 */
export function Icon(props: { svg: string; class?: string }) {
  return html`<span class=${`inline-flex shrink-0 [&>svg]:size-4 ${props.class ?? ''}`} aria-hidden="true"
    >${unsafeHTML(props.svg.trim())}</span
  >`;
}