Home / Function/ PrimaryNode() — supabase Function Reference

PrimaryNode() — supabase Function Reference

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

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Database/Replication/ComingSoon.tsx lines 121–155

const PrimaryNode = ({
  data,
}: {
  data: { label: string; region: string; provider: string; regionIcon: string }
}) => {
  return (
    <div className="flex flex-col rounded bg-surface-100 border border-default">
      <div className="flex items-start justify-between p-3" style={{ width: NODE_WIDTH / 2 + 55 }}>
        <div className="flex gap-x-3">
          <div className="w-8 h-8 bg-brand-500 border border-brand-600 rounded-md flex items-center justify-center">
            <Database size={16} />
          </div>
          <div className="flex flex-col gap-y-0.5">
            <p className="text-sm">{data.label}</p>
            <p className="flex items-center gap-x-1">
              <span className="text-sm text-foreground-light">{data.region}</span>
            </p>
            <p className="flex items-center gap-x-1">
              <span className="text-sm text-foreground-light">{data.provider}</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="source" 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