import { Row } from '@umami/react-zen'; import type { ReactNode } from 'react'; export function TypeIcon({ type, value, children, }: { type: 'browser' | 'country' | 'device' | 'os'; value: string; children?: ReactNode; }) { return ( { e.currentTarget.src = `${process.env.basePath || ''}/images/${type}/unknown.png`; }} alt={value} width={type === 'country' ? undefined : 16} height={type === 'country' ? undefined : 16} /> {children} ); }