src/lib/ui/components/devtools/status-bar.tsx

Total Symbols
2
Lines of Code
20
Avg Complexity
1.5
Symbol Types
2

Architecture violations

View all

  • [warning] function-camel-case: 'StatusBar' does not match naming convention /^[a-z][a-zA-Z0-9]*$/

Symbols by Kind

interface 1
function 1

All Symbols

Name Kind Visibility Status Lines Signature
StatusBarProps interface exported- 7-11 interface StatusBarProps
StatusBar function exported- 13-19 StatusBar({ count, label, emptyLabel }: StatusBarProps)

Full Source

/**
 * StatusBar — Barra de status do painel, exibe contagem de campos detectados.
 */

import { h } from "preact";

export interface StatusBarProps {
  count: number;
  label: string;
  emptyLabel: string;
}

export function StatusBar({ count, label, emptyLabel }: StatusBarProps) {
  return (
    <div class="status-bar" id="status-bar">
      {count > 0 ? `${count} ${label}` : emptyLabel}
    </div>
  );
}