import type { EventHandler, MouseEvent, ReactNode } from 'react'; import { ValuesOf } from '../utils/typeUtils'; import { SOCIAL_BUTTON_ICONS } from './SocialButton.constants'; export type SocialButtonIcons = ValuesOf; export type SocialButtonProps = { /** Text for the button. */ text?: ReactNode; /** Share button social network type. */ icon?: SocialButtonIcons; /** Applies a data-hook HTML attribute that can be used in the tests. */ dataHook?: string; /** Specifies whether the button is disabled. A disabled button doesn't call `onClick`. */ disabled?: boolean; /** Defines a callback function which is called when the button is clicked. */ onClick?: EventHandler>; }; //# sourceMappingURL=SocialButton.types.d.ts.map