diff --git a/ui/dashboard/src/components/dashboards/Table/index.tsx b/ui/dashboard/src/components/dashboards/Table/index.tsx index d59d92b3..5d379a9b 100644 --- a/ui/dashboard/src/components/dashboards/Table/index.tsx +++ b/ui/dashboard/src/components/dashboards/Table/index.tsx @@ -46,6 +46,8 @@ import { usePanelControls } from "@powerpipe/hooks/usePanelControls"; import { usePopper } from "react-popper"; import { useSearchParams } from "react-router-dom"; import { useVirtualizer } from "@tanstack/react-virtual"; +import useCopyToClipboard from "@powerpipe/hooks/useCopyToClipboard"; +import { AsyncNoop } from "@powerpipe/types/func"; const ExternalLink = getComponent("external_link"); @@ -488,6 +490,7 @@ const CellControls = ({ const { styles, attributes } = usePopper(referenceElement, popperElement, { placement: "bottom-start", }); + const { copy, copySuccess } = useCopyToClipboard(); return ( <> @@ -502,11 +505,14 @@ const CellControls = ({ >