Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

318 B
Raw Blame
export const TabsContent = ({
  children,
  value,
  activeTab,
  "data-testid": dataTestId,
}: {
  children: React.ReactNode;
  value: string;
  activeTab: string;
  "data-testid"?: string;
}) => {
  if (activeTab !== value) return null;

  return <div data-testid={dataTestId ?? 'tabs-content'}>{children}</div>;
};