import { type ReactNode } from 'react'; import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent'; export interface BlanketProps { /** * Whether mouse events can pass through the blanket. If `true`, `onBlanketClicked` will not be called. */ shouldAllowClickThrough?: boolean; /** * Sets whether the blanket has a tinted background color. */ isTinted?: boolean; /** * Handler function to be called when the blanket is clicked. */ onBlanketClicked?: (event: React.MouseEvent, analyticsEvent: UIAnalyticsEvent) => void; /** * Additional information to be included in the `context` of analytics events. */ analyticsContext?: Record; /** * A `testId` prop is provided for specified elements, * which is a unique string that appears as a data attribute `data-testid` in the rendered code, * serving as a hook for automated tests. */ testId?: string; /** * The children to be rendered within the blanket. */ children?: ReactNode; }