import styled from '@emotion/styled'; import {openModal} from 'sentry/actionCreators/modal'; import Button from 'sentry/components/button'; import Tooltip from 'sentry/components/tooltip'; import {t} from 'sentry/locale'; import type {Group, Organization} from 'sentry/types'; import ShareIssueModal from './shareModal'; interface ShareIssueProps { group: Group; onToggle: () => void; organization: Organization; disabled?: boolean; disabledReason?: string; } function ShareIssue({ onToggle, disabled, group, organization, disabledReason, }: ShareIssueProps) { const handleOpen = () => { // Starts sharing as soon as dropdown is opened openModal(modalProps => ( )); }; return ( ); } export default ShareIssue; const IndicatorDot = styled('div')<{isShared?: boolean}>` border-radius: 50%; width: 10px; height: 10px; background: ${p => (p.isShared ? p.theme.active : p.theme.border)}; `;