import { getDepGraphService } from './machines/dep-graph.service'; import ExperimentalFeature from './experimental-feature'; export interface ProjectNodeToolTipProps { type: 'app' | 'lib' | 'e2e'; id: string; tags: string[]; } function ProjectNodeToolTip({ type, id, tags }: ProjectNodeToolTipProps) { const depGraphService = getDepGraphService(); function onFocus() { depGraphService.send({ type: 'focusProject', projectName: id, }); } function onExclude() { depGraphService.send({ type: 'deselectProject', projectName: id, }); } function onStartTrace() { depGraphService.send({ type: 'setTracingStart', projectName: id, }); } function onEndTrace() { depGraphService.send({ type: 'setTracingEnd', projectName: id, }); } return (
tags
{tags.join(', ')}