import React from 'react'; import { translateString, inSelectMediaEmbedMode } from '../utils/helpers/'; interface MediaListHeaderProps { title?: string; viewAllLink?: string; viewAllText?: string; className?: string; style?: { [key: string]: any }; } export const MediaListHeader: React.FC = (props) => { const viewAllText = props.viewAllText || translateString('VIEW ALL'); const isSelectMediaMode = inSelectMediaEmbedMode(); return (

{props.title}

{!isSelectMediaMode && props.viewAllLink ? (

{' '} {' '} {viewAllText || props.viewAllLink}{' '} {' '}

) : null}
); };