🐛 (share) Show duplicate button for authenticated guests
This commit is contained in:
@ -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>
|
||||
)
|
||||
|
Reference in New Issue
Block a user