UNPKG

react-easy-social-share

Version:

Social media share for React, Nextjs and React applications.

5 lines (4 loc) 635 B
import React from 'react'; import { Props as ShareButtonProps } from '../components/SocialShareButton'; declare function createShareButton<OptionProps extends Record<string, any>, LinkOptions = OptionProps>(networkName: string, link: (url: string, options: LinkOptions) => string, optsMap: (props: OptionProps) => LinkOptions, defaultProps: Partial<ShareButtonProps<LinkOptions> & OptionProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<ShareButtonProps<LinkOptions>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & OptionProps> & React.RefAttributes<HTMLButtonElement>>; export default createShareButton;