mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 21:10:48 +00:00
* fix(browser): unify embedded controls and show download progress immediately * fix(browser): preserve input focus when background navigation finishes
13 lines
636 B
TypeScript
13 lines
636 B
TypeScript
import React from 'react';
|
|
import { Globe } from 'lucide-react';
|
|
|
|
export function BrowserIcon({ image, glyph, color, className = '' }: {
|
|
image?: string | null; glyph?: string | null; color?: string | null; className?: string;
|
|
}) {
|
|
return <span className={`inline-flex shrink-0 items-center justify-center overflow-hidden ${className}`}>
|
|
{image ? <img src={image} alt="" className="h-full w-full rounded-[20%] object-contain" draggable={false} />
|
|
: glyph ? <span className="truncate text-xs" style={{ color: color || undefined }}>{glyph}</span>
|
|
: <Globe size={14} className="text-muted-foreground" />}
|
|
</span>;
|
|
}
|