Add EmptyState
component
This commit is contained in:
parent
ea49f7a3b6
commit
78f15b654d
3 changed files with 38 additions and 0 deletions
29
ts/components/conversation/media-gallery/EmptyState.tsx
Normal file
29
ts/components/conversation/media-gallery/EmptyState.tsx
Normal file
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* @prettier
|
||||
*/
|
||||
import React from 'react';
|
||||
|
||||
import * as Colors from '../../styles/Colors';
|
||||
|
||||
interface Props {
|
||||
label: string;
|
||||
}
|
||||
|
||||
const styles = {
|
||||
container: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
flexGrow: 1,
|
||||
|
||||
fontSize: 28,
|
||||
color: Colors.TEXT_SECONDARY,
|
||||
} as React.CSSProperties,
|
||||
};
|
||||
|
||||
export class EmptyState extends React.Component<Props, {}> {
|
||||
public render() {
|
||||
const { label } = this.props;
|
||||
return <div style={styles.container}>{label}</div>;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue