import React from "react";

const Label = ({ node }) => {
    return (
        <text
            x={node.x + 12}
            y={node.y + 4}
            dx={12}
            dy={4}
            style={{
                userSelect: "none",
                pointerEvents: "none",
                fill: "var(--TreeChart-text-color)",
            }}
        >
            {node.data.title}
        </text>
    );
};

export default Label;