// @flow import 'scss/component/_comment-selectors.scss'; import React from 'react'; import * as ICONS from 'constants/icons'; import CreditAmount from 'component/common/credit-amount'; import I18nMessage from 'component/i18nMessage'; import Icon from 'component/common/icon'; import SelectChannel from 'component/selectChannel'; type SelectorProps = { isReply: boolean, isLivestream: boolean, }; export const FormChannelSelector = (selectorProps: SelectorProps) => { const { isReply, isLivestream } = selectorProps; return (
{(isReply ? __('Replying as') : isLivestream ? __('Chat as') : __('Comment as')) + ' '}
); }; type HelpTextProps = { deletedComment: boolean, minAmount: number, minSuper: number, minTip: number, }; export const HelpText = (helpTextProps: HelpTextProps) => { const { deletedComment, minAmount, minSuper, minTip } = helpTextProps; return ( <> {deletedComment &&
{__('This comment has been deleted.')}
} {!!minAmount && (
}}> {minTip ? 'Comment min: %lbc%' : minSuper ? 'HyperChat min: %lbc%' : ''}
)} ); };