import ActionButton from 'sentry/components/actions/button'; import {IconSubscribed} from 'sentry/icons'; import {t} from 'sentry/locale'; import type {Group} from 'sentry/types'; import {getSubscriptionReason} from '../utils'; type Props = { group: Group; onClick: (event: React.MouseEvent) => void; className?: string; /** * Disables the primary color scheme when subscribed */ disablePriority?: boolean; disabled?: boolean; icon?: React.ReactNode; size?: 'xs' | 'sm'; }; function SubscribeAction({ className, disabled, group, icon, onClick, disablePriority, size = 'xs', }: Props) { const disabledNotifications = group.subscriptionDetails?.disabled ?? false; return ( } /> ); } export default SubscribeAction;