Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

990 B
Raw Blame
import cx from "classnames";
import { t } from "ttag";

import attributesIllustration from "assets/img/attributes_illustration.png";
import attributesIllustration2x from "assets/img/[email protected]";
import CS from "metabase/css/core/index.css";

interface AttributeOptionsEmptyStateProps {
  title: string;
}

export const AttributeOptionsEmptyState = ({
  title,
}: AttributeOptionsEmptyStateProps) => (
  <div
    className={cx(
      CS.flex,
      CS.alignCenter,
      CS.rounded,
      "bg-slate-extra-light",
      CS.p2,
    )}
  >
    <img
      src={attributesIllustration}
      srcSet={`${attributesIllustration} 1x, ${attributesIllustration2x} 2x`}
      className={CS.mr2}
    />
    <div>
      <h3 className={CS.pb1}>{title}</h3>
      <div>{t`You can add attributes automatically by setting up an SSO that uses SAML, or you can enter them manually by going to the People section and clicking on the … menu on the far right.`}</div>
    </div>
  </div>
);