2
0

🐛 (share) Show duplicate button for authenticated guests

This commit is contained in:
Baptiste Arnaud
2024-05-03 10:46:03 +02:00
parent 8a27cea36b
commit 9b1ff8461c

View File

@ -14,6 +14,7 @@ import {
import {
BuoyIcon,
ChevronLeftIcon,
CopyIcon,
PlayIcon,
RedoIcon,
UndoIcon,
@ -291,6 +292,17 @@ const RightElements = ({
</chakra.span>
</Button>
)}
{currentUserMode === 'guest' && (
<Button
as={Link}
href={`/typebots/${typebot?.id}/duplicate`}
leftIcon={<CopyIcon />}
isLoading={isNotDefined(typebot)}
size="sm"
>
Duplicate
</Button>
)}
{currentUserMode === 'write' && <PublishButton size="sm" />}
</HStack>
)