import React from 'react'; import './style.less'; import Loader from 'components/Loader'; interface Props { title?: React.ReactNode; subtitle?: React.ReactNode; style?: React.CSSProperties; loading?: boolean; } const Placeholder: React.SFC = ({ style = {}, title, subtitle, loading }) => (
{(loading && ) || ( <> {title &&

{title}

} {subtitle &&
{subtitle}
} )}
); export default Placeholder;