// @flow import 'scss/component/_comment-selectors.scss'; import Button from 'component/button'; import React from 'react'; import ChannelThumbnail from 'component/channelThumbnail'; import UriIndicator from 'component/uriIndicator'; import CreditAmount from 'component/common/credit-amount'; const TAB_FIAT = 'TabFiat'; const TAB_LBC = 'TabLBC'; type Props = { activeChannelUrl: string, tipAmount: number, activeTab: string, message: string, isReviewingStickerComment?: boolean, stickerPreviewComponent?: any, }; export const TipReviewBox = (props: Props) => { const { activeChannelUrl, tipAmount, activeTab, message, isReviewingStickerComment, stickerPreviewComponent } = props; return (
{isReviewingStickerComment ? ( stickerPreviewComponent ) : ( <>
{message}
)}
); }; type TipButtonProps = { name: string, tab: string, activeTab: string, tipSelectorOpen: boolean, onClick: (tab: string) => void, }; export const TipActionButton = (tipButtonProps: TipButtonProps) => { const { name, tab, activeTab, tipSelectorOpen, onClick, ...buttonProps } = tipButtonProps; return ( (!tipSelectorOpen || activeTab !== tab) && (