mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: tooltip for embed button
This commit is contained in:
1 parent
49f601d200
commit
168ab1e1a1
1 file changed
+14
-8
@@ -9,6 +9,7 @@ import {
|
||||
Flex,
|
||||
Text,
|
||||
TextField,
|
||||
Tooltip,
|
||||
} from '@radix-ui/themes';
|
||||
import { debounce } from 'lodash';
|
||||
import { ChangeEvent, useRef, useState } from 'react';
|
||||
@@ -202,14 +203,19 @@ export default function Page() {
|
||||
</Flex>
|
||||
</AlertDialog.Content>
|
||||
</AlertDialog.Root>
|
||||
<Button
|
||||
className={styles.toolbarButton}
|
||||
onClick={() =>
|
||||
navigator.clipboard.writeText(`${location.origin}/embeds/session`)
|
||||
}
|
||||
>
|
||||
<CopyIcon width="16" height="16" /> Embed
|
||||
</Button>
|
||||
|
||||
<Tooltip content="Copy to clipboard">
|
||||
<Button
|
||||
className={styles.toolbarButton}
|
||||
onClick={() =>
|
||||
navigator.clipboard.writeText(
|
||||
`${location.origin}/embeds/session`,
|
||||
)
|
||||
}
|
||||
>
|
||||
<CopyIcon width="16" height="16" /> Embed
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user