🐛 (share) Show duplicate button for authenticated guests
This commit is contained in:
@ -14,6 +14,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
BuoyIcon,
|
BuoyIcon,
|
||||||
ChevronLeftIcon,
|
ChevronLeftIcon,
|
||||||
|
CopyIcon,
|
||||||
PlayIcon,
|
PlayIcon,
|
||||||
RedoIcon,
|
RedoIcon,
|
||||||
UndoIcon,
|
UndoIcon,
|
||||||
@ -291,6 +292,17 @@ const RightElements = ({
|
|||||||
</chakra.span>
|
</chakra.span>
|
||||||
</Button>
|
</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" />}
|
{currentUserMode === 'write' && <PublishButton size="sm" />}
|
||||||
</HStack>
|
</HStack>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user