mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 17:39:39 +02:00
git-subtree-dir: ai-context/workbench-ui git-subtree-split: 32e36a5c2131e429a7081cfaf67dabad3193cda3
15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
import React from "react";
|
|
|
|
import { Tag } from "@chakra-ui/react";
|
|
|
|
import { Value } from "@trustgraph/react-state";
|
|
|
|
const SelectedNode: React.FC<{ value: Value }> = ({ value }) => {
|
|
return (
|
|
<Tag.Root variant="surface" color="gray.50" backgroundColor="gray.600">
|
|
<Tag.Label>{value.label}</Tag.Label>
|
|
</Tag.Root>
|
|
);
|
|
};
|
|
|
|
export default SelectedNode;
|