Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

460 B
Raw Blame
import { Button } from '@/components/ui/button'
import { useIcon } from '@/hooks/use-icon'

type NodeIconTriggerProps = {
  type: string
  onClick: () => void
}
export const NodeIconTrigger = ({ type, onClick }: NodeIconTriggerProps) => {
  const Icon = useIcon(type)
  return (
    <Button
      className="cursor-pointer hover:bg-muted"
      onClick={onClick}
      variant={'ghost'}
      size={'icon'}
    >
      {Icon({ size: 24 })}
    </Button>
  )
}