File size: 599 Bytes
345b8ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use client";

import { useTenant } from "@/contexts/TenantContext";

export function TenantSelector() {
  const { tenantId, setTenantId } = useTenant();

  return (
    <div className="flex items-center gap-3">
      <label className="text-sm font-semibold text-slate-200">Tenant ID:</label>
      <input
        value={tenantId}
        onChange={(e) => setTenantId(e.target.value)}
        placeholder="Enter tenant ID"
        className="rounded-xl border border-white/10 bg-slate-900/50 px-4 py-2 text-sm text-white outline-none focus:border-cyan-400 min-w-[150px]"
      />
    </div>
  );
}