mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: show ai badge for discovery (#7749)
This commit is contained in:
parent
7e471b55eb
commit
a07f6e9e3a
1 changed files with 19 additions and 0 deletions
|
@ -306,6 +306,25 @@ export const ShapesSwitcher = ({
|
||||||
title={t("toolBar.extraTools")}
|
title={t("toolBar.extraTools")}
|
||||||
>
|
>
|
||||||
{extraToolsIcon}
|
{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.Trigger>
|
||||||
<DropdownMenu.Content
|
<DropdownMenu.Content
|
||||||
onClickOutside={() => setIsExtraToolsMenuOpen(false)}
|
onClickOutside={() => setIsExtraToolsMenuOpen(false)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue