Home / Function/ ReplicaNode() — supabase Function Reference

ReplicaNode() — supabase Function Reference

Architecture documentation for the ReplicaNode() function in ComingSoon.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx lines 156–185

const ReplicaNode = ({
  data,
}: {
  data: { label: string; details: string; regionIcon: string }
}) => {
  return (
    <div className="flex flex-col rounded bg-surface-100 border border-default px-2">
      <div className="flex items-start justify-between p-3" style={{ width: NODE_WIDTH / 2 - 10 }}>
        <div className="flex gap-x-3">
          <div className="flex flex-col gap-y-0.5">
            <p>{data.label}</p>
            <p className="flex items-center gap-x-1">
              <span className="text-sm text-foreground-light">{data.details}</span>
            </p>
          </div>
        </div>
        <div className="flex items-center gap-2">
          <img
            alt="region icon"
            className="w-6 rounded-sm mt-0.5"
            src={`${BASE_PATH}/img/regions/${data.regionIcon}.svg`}
          />
          <Circle size={10} className="bg-brand-500 stroke-none rounded-full" />
        </div>
      </div>

      <Handle type="target" position={Position.Left} className="opacity-25" />
    </div>
  )
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free