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.

399 B
Raw Blame
export const Dropdown = ({
  children,
  show,
  "data-testid": dataTestId,
}: {
  children: React.ReactNode;
  show: boolean;
  "data-testid"?: string;
}) => {
  if (!show) return null;

  return (
    <div
      className='absolute -right-2 bg-primary text-primary z-20 border border-primary rounded-sm w-max'
      data-testid={dataTestId ?? 'dropdown'}
    >
      {children}
    </div>
  );
};