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 { t } from "ttag";
import { useMetabotAgent } from "metabase/metabot/hooks";
import { Flex, Icon, Text, Tooltip, UnstyledButton } from "metabase/ui";
import S from "./MetabotQuestion.module.css";
export function SidebarHeader() {
const metabot = useMetabotAgent();
return (
<Flex
px="lg"
py="sm"
justify="space-between"
align="center"
className={S.sidebarHeader}
>
<Text fz="sm" c="text-secondary">
{t`AI isn't perfect. Double-check results.`}
</Text>
<Tooltip label={t`Start new chat`}>
<UnstyledButton
onClick={() => metabot.createNewConversation()}
data-testid="metabot-new-conversation"
>
<Icon name="edit_document_outlined" size="1rem" c="text-secondary" />
</UnstyledButton>
</Tooltip>
</Flex>
);
}