feat: show ai badge for discovery (#7749)

pull/7752/head
David Luzar 1 year ago committed by GitHub
parent 7e471b55eb
commit a07f6e9e3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -306,6 +306,25 @@ export const ShapesSwitcher = ({
title={t("toolBar.extraTools")}
>
{extraToolsIcon}
{app.props.aiEnabled !== false && (
<div
style={{
display: "inline-flex",
marginLeft: "auto",
padding: "2px 4px",
borderRadius: 6,
fontSize: 8,
fontFamily: "Cascadia, monospace",
position: "absolute",
background: "pink",
color: "black",
bottom: 3,
right: 4,
}}
>
AI
</div>
)}
</DropdownMenu.Trigger>
<DropdownMenu.Content
onClickOutside={() => setIsExtraToolsMenuOpen(false)}

Loading…
Cancel
Save