File size: 432 Bytes
b4ad384
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"use client";

export type GroupLabelNodeData = {
  label: string;
  color: string;
};

export default function GroupLabelNode({ data }: { data: GroupLabelNodeData }) {
  return (
    <div
      className="pointer-events-none select-none text-center font-semibold text-xs tracking-[0.25em] uppercase"
      style={{ color: data.color, width: 320, textShadow: `0 0 16px ${data.color}66` }}
    >
      {data.label}
    </div>
  );
}