"use client";

import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import type { MenuDomain } from "../types";

interface DomainTabsProps {
  value: MenuDomain;
  onChange: (domain: MenuDomain) => void;
}

export function DomainTabs({ value, onChange }: DomainTabsProps) {
  return (
    <Tabs value={value} onValueChange={(v) => onChange(v as MenuDomain)}>
      <TabsList>
        <TabsTrigger value="evcp">
          EVCP (Internal)
        </TabsTrigger>
        <TabsTrigger value="partners">
          Partners (Vendors)
        </TabsTrigger>
      </TabsList>
    </Tabs>
  );
}

