The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import type { StoryFn } from "@storybook/react";
import { CommonSdkStoryWrapper } from "embedding-sdk-bundle/test/CommonSdkStoryWrapper";
import { Box } from "metabase/ui";
import {
SdkUsageProblemBanner,
type SdkUsageProblemBannerProps,
} from "./SdkUsageProblemBanner";
export default {
title: "EmbeddingSDK/SdkUsageProblemBanner",
component: SdkUsageProblemBanner,
decorators: [CommonSdkStoryWrapper],
};
const Template: StoryFn<SdkUsageProblemBannerProps> = (args) => {
return (
<Box pos="absolute" bottom="15px" left="15px">
<SdkUsageProblemBanner {...args} />
</Box>
);
};
const MESSAGE =
"The modular embedding SDK is using API keys. This is intended for evaluation purposes and works only on localhost. To use on other sites, implement SSO.";
export const Warning = {
render: Template,
args: {
problem: {
severity: "warning",
title: "This embed is powered by the Metabase SDK",
message: MESSAGE,
},
},
};
export const Error = {
render: Template,
args: {
problem: { severity: "error", title: "Error", message: MESSAGE },
},
};