jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
42 lines (35 loc) • 1.47 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var tslib_es6 = require('../../../../../node_modules/tslib/tslib.es6.js');
var React = require('react');
var React__default = _interopDefault(React);
var styled = require('styled-components');
var styled__default = _interopDefault(styled);
/**
* @file index.tsx
*
* @fileoverview Renders a single facet link in the form of a span.
*/
const StyledFacetLink = styled__default.span `
cursor: pointer;
text-transform: ${props => props.theme.navigation.links.textTransform};
text-decoration: ${props => props.theme.navigation.links.textDecoration};
color: ${props => props.theme.colors.primary};
margin-right: ${props => props.theme.navigation.links.marginRight};
font-size: ${props => props.theme.navigation.links.fontSize};
&.is-active {
color: ${props => props.theme.navigation.links.activeColor};
}
${props => props.selected
? `font-style:italic; color:${props.theme.colors.gray9}`
: null};
`;
/**
* Styles a facet link as used in the facet listing.
*/
const FacetLinkItem = (_a) => {
var { children, selected } = _a, props = tslib_es6.__rest(_a, ["children", "selected"]);
return (React.createElement(StyledFacetLink, Object.assign({ selected: selected }, props), children));
};
exports.FacetLinkItem = FacetLinkItem;