/**
* ToolBadge Component
*
* Displays a tool type badge with icon for OpenFrame integrated tools.
* Used in tables to show tool sources like Fleet MDM, MeshCentral, etc.
*
* @example
* ```tsx
*
*
*
* ```
*/
import React from 'react'
import { ToolType } from '../../types/tool.types'
import { getToolLabel } from '../../utils/tool-utils'
import { cn } from '../../utils/cn'
import { ToolIcon } from '../tool-icon'
export type { ToolType } from '../../types/tool.types'
export interface ToolBadgeProps {
/** Tool type */
toolType: ToolType
/** Additional CSS classes */
className?: string
iconClassName?: string
}
export const ToolBadge: React.FC = ({
toolType,
className,
iconClassName,
}) => {
const label = getToolLabel(toolType)
return (
{label}
)
}
ToolBadge.displayName = 'ToolBadge'