mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
20 lines
518 B
TypeScript
20 lines
518 B
TypeScript
import type * as React from 'react'
|
|
|
|
import { cn } from '@/lib/utils'
|
|
|
|
export interface CodiconProps extends React.HTMLAttributes<HTMLElement> {
|
|
name: string
|
|
size?: number | string
|
|
spinning?: boolean
|
|
}
|
|
|
|
export function Codicon({ className, name, size, spinning, style, ...props }: CodiconProps) {
|
|
return (
|
|
<i
|
|
aria-hidden="true"
|
|
className={cn('codicon', `codicon-${name}`, spinning && 'codicon-modifier-spin', className)}
|
|
style={{ fontSize: size, ...style }}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|