1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from "react";
6 import copy from 'copy-to-clipboard';
7 import { ListItemIcon, ListItemText, ListItem } from "@material-ui/core";
8 import { Link } from "components/icon/icon";
9 import { getCollectionItemClipboardUrl } from "./helpers";
11 export const CopyToClipboardAction = (props: { href?: any, download?: any, onClick?: () => void, kind?: string, currentCollectionUuid?: string; }) => {
12 const copyToClipboard = () => {
14 const clipboardUrl = getCollectionItemClipboardUrl(props.href, true, true);
24 ? <ListItem button onClick={copyToClipboard}>