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 ( return (
<Tr> <Tr>
<Td>{entry.destination}</Td> <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> <Td>
<IconButton <IconButton
aria-label="Delete link" aria-label="Delete link"