Repository URL to install this package:
|
Version:
0.0.3 ▾
|
@skava/packages
/
features
/
Header
/
MiddleBar
/
SearchBar
/
SearchInput
/
actions
/
BarCodeButton.js
|
|---|
/**
* @fileoverview
* this will be moved to organisms for barcode scanning later
*
* @event !!!! PLEASE DO NOT DEV ON THIS WITHOUT FINISHING AN ARCHITECTURE
*/
import * as React from 'react';
import { styled } from 'styleh-components';
import { media } from '@skava/styleh-toolset';
import { Button, BarCodeIcon } from '@skava/packages/ui';
/**
* @todo center vertically
*/
const StyledButton = styled(Button) `
> svg {
position: absolute;
right: 0px;
top: rem(10);
z-index: 10;
}
${media.desktopOrLarger `
display: none;
`}
`;
class BarCodeButton extends React.PureComponent {
render() {
const { onClick, isVisible } = this.props;
const iconView = React.createElement(BarCodeIcon, null);
return React.createElement(StyledButton, { onClick: onClick, icon: iconView, "aria-label": 'Barcode' });
}
}
export { BarCodeButton };
export default BarCodeButton;
//# sourceMappingURL=BarCodeButton.js.map