UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

42 lines (35 loc) 1.69 kB
'use strict'; 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 A styled menu link item. */ const StyledMenuLink = styled__default.a ` cursor: pointer; text-transform: ${props => props.theme.navigation.links.textTransform}; text-decoration: ${props => props.theme.navigation.links.textDecoration}; letter-spacing: ${props => props.theme.navigation.links.letterSpacing}; color: ${props => props.theme.navigation.links.color}; 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}; } `; /** * Renders a link styled to be used as a navigation item. The theme object will provide some basic styling for * the element. Use this item in the main navigation of the website. it can also be used elsewhere as long as it needs to keep consistency * wit the main menu navigation which is the main purpose of the style of the component. */ const MenuLink = React.forwardRef((_a, ref) => { var { children } = _a, props = tslib_es6.__rest(_a, ["children"]); return (React.createElement(StyledMenuLink, Object.assign({ ref: ref }, props), children)); }); exports.MenuLink = MenuLink;