2018-09-13 20:48:01 -07:00
|
|
|
import React from 'react';
|
2018-09-22 09:53:22 -07:00
|
|
|
import './style.less';
|
2018-09-13 20:48:01 -07:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
title?: React.ReactNode;
|
|
|
|
subtitle?: React.ReactNode;
|
|
|
|
style?: React.CSSProperties;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Placeholder: React.SFC<Props> = ({ style = {}, title, subtitle }) => (
|
2018-09-22 09:53:22 -07:00
|
|
|
<div className="Placeholder" style={style}>
|
|
|
|
{title && <h3 className="Placeholder-title">{title}</h3>}
|
|
|
|
{subtitle && <div className="Placeholder-subtitle">{subtitle}</div>}
|
|
|
|
</div>
|
2018-09-13 20:48:01 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
export default Placeholder;
|