import _identity from 'lodash/identity'
import React, { ReactElement } from 'react'
import { isValidNumber } from '../../utils/isValidNumber'
import config from './config'
import { IShareButton } from './index'
const SocialComponent = ({
mainLabel,
subLabel,
platform,
shareData,
points,
onAfterShare,
alreadyApplied,
oneTimeAction,
btnClassName = '',
}: IShareButton) => {
const Component = config(platform)?.component
const Icon = config(platform)?.icon
const isActionDisabled = alreadyApplied && oneTimeAction
return (
<>
{Component && (
We never post on Facebook without your permission!
) as ReactElement, clientLabel, onAfterShare = _identity, showReferralsInfoText = false, }: SocialButtonsTypes) => ( <> {titleText &&*Please note, only purchases made from a different{' '} {clientLabel || 'Ticket Fairy'} account can count towards your referrals {' '} so please make sure you ask your friends to buy their own tickets using their own {clientLabel || 'Ticket Fairy'} account!
)} > ) export default SocialButtons