"use client";
import React from "react";
function NodeBadge({ children, tone = "gray" }) {
const tones = {
gray: "border-gray-200 bg-gray-50 text-gray-700",
blue: "border-blue-200 bg-blue-50 text-blue-700",
green: "border-green-200 bg-green-50 text-green-700",
yellow: "border-yellow-200 bg-yellow-50 text-yellow-700",
};
return (
{children}
);
}
function NodeGroup({ title, nodes }) {
if (!nodes?.length) return null;
return (
{node.description}
{title} ({nodes.length})
{nodes.map((node) => (
{selectedQuestion.question}
{JSON.stringify(situationGraph, null, 2)}