import type { FunctionComponent } from 'react'; import React from 'react'; import { Button } from '../Button'; import i18n from './i18n'; import styles from './styles.scss'; export type CallInfoBarProps = { label: string; onClick?: () => void; currentLocale: string; shouldDisplayViewCallsBtn: boolean; useV2: boolean; dataSign: string; }; export const CallInfoBar: FunctionComponent = ({ label = '', onClick, currentLocale = '', shouldDisplayViewCallsBtn = false, useV2 = false, dataSign = '', }) => { const buttonText = useV2 ? 'view' : 'viewCalls'; return (
{label}
{shouldDisplayViewCallsBtn ? ( ) : null}
); };