Files
flipper/src/chrome/ErrorBar.js
Daniel Büchele 66e77075be Rename package to 'flipper'
Summary:
- rename package `'sonar'` > `'flipper'`
- rename package `'sonar-static'` > `'flipper-static'`
- rename package export from `window.Sonar` to `window.Flipper`

Reviewed By: passy

Differential Revision: D9851181

fbshipit-source-id: 34d4447c3b287496b3d20ddb54471ce777ec74e1
2018-09-18 07:01:16 -07:00

29 lines
626 B
JavaScript

/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import {styled, colors} from 'flipper';
const ErrorBarContainer = styled('div')({
backgroundColor: colors.cherry,
bottom: 0,
color: '#fff',
left: 0,
lineHeight: '26px',
position: 'absolute',
right: 0,
textAlign: 'center',
zIndex: 2,
});
export default function ErrorBar(props: {|text: ?string|}) {
if (props.text == null) {
return null;
} else {
return <ErrorBarContainer>{props.text}</ErrorBarContainer>;
}
}