diff --git a/apps/frontend/src/components/launches/menu/menu.tsx b/apps/frontend/src/components/launches/menu/menu.tsx index 85ad5935..202a5a2d 100644 --- a/apps/frontend/src/components/launches/menu/menu.tsx +++ b/apps/frontend/src/components/launches/menu/menu.tsx @@ -27,6 +27,8 @@ import { useT } from '@gitroom/react/translation/get.transation.service.client'; import { AddEditModal } from '@gitroom/frontend/components/new-launch/add.edit.modal'; import dayjs from 'dayjs'; import { ModalWrapperComponent } from '@gitroom/frontend/components/new-launch/modal.wrapper.component'; +import copy from 'copy-to-clipboard'; + export const Menu: FC<{ canEnable: boolean; canDisable: boolean; @@ -151,6 +153,16 @@ export const Menu: FC<{ setShow(false); }, [integrations]); + const copyChannelId = useCallback( + (integration: Integrations) => async () => { + setShow(false); + const channelId = integration.id; + copy(channelId); + toast.show(`Channel ID ${channelId} copied to clipboard`, 'success'); + }, + [] + ); + const createPost = useCallback( (integration: Integrations) => async () => { setShow(false); @@ -327,6 +339,34 @@ export const Menu: FC<{ )} +