mirror of
https://github.com/prometheus/prometheus.git
synced 2025-11-17 00:31:01 +01:00
The useClipboard hook also just uses navigator.clipboard.writeText() under the hood, but the timeout and state handling that the hook provides were just not a good fit for showing a one-shot notification with error detectionm, so doing the copying manually. Addresses part of https://github.com/prometheus/prometheus/issues/16162 Signed-off-by: Julius Volz <julius.volz@gmail.com>