Add click to copy

This commit is contained in:
2024-11-01 22:10:51 -04:00
parent 87e8c86497
commit b0b55135e8

View File

@ -100,7 +100,16 @@ export default function () {
return (
<Tr>
<Td>{entry.destination}</Td>
<Td>{entry.path}</Td>
<Td
onClick={() => {
navigator.clipboard.writeText(
`https://carcrushe.rs/${entry.path}`,
);
alert("Link copied");
}}
>
https://carcrushe.rs/{entry.path}
</Td>
<Td>
<IconButton
aria-label="Delete link"