Skip to content

Commit

Permalink
feat(playground): copy messages to clipboard (#5000)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking authored Oct 14, 2024
1 parent bbbfd22 commit 23e9d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/pages/playground/PlaygroundChatTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { css } from "@emotion/react";

import { Button, Card, Flex, Icon, Icons, View } from "@arizeai/components";

import { CopyToClipboardButton } from "@phoenix/components";
import { DragHandle } from "@phoenix/components/dnd/DragHandle";
import {
TemplateEditor,
Expand Down Expand Up @@ -214,6 +215,7 @@ function SortableMessageItem({
}
extra={
<Flex direction="row" gap="size-100">
<CopyToClipboardButton text={message.content} />
<Button
aria-label="Delete message"
icon={<Icon svg={<Icons.TrashOutline />} />}
Expand Down

0 comments on commit 23e9d82

Please sign in to comment.