import React from 'react'; import cx from 'classnames'; interface Props { fetching?: boolean; label: string; title?: string; className?: string; } const Indicator: React.FC = ({ label, title, fetching, className, children, }) => { return (

{label}

{fetching ? ( ) : ( children )}

); }; export default Indicator;