@vimeo/iris
Version:
Vimeo Design System
15 lines (12 loc) • 753 B
JavaScript
import { b as __rest, c as __assign } from '../../tslib.es6-7f0e734f.js';
import React__default from 'react';
import { Link as Link$1 } from './Link.style.esm.js';
import { withIris } from '../../utils/HOCs/withIris.esm.js';
import 'styled-components';
import 'polished';
var Link = withIris(LinkComponent);
function LinkComponent(_a) {
var children = _a.children, variant = _a.variant, _b = _a.element, element = _b === void 0 ? 'a' : _b, _c = _a.format, format = _c === void 0 ? 'primary' : _c, href = _a.href, props = __rest(_a, ["children", "variant", "element", "format", "href"]);
return (React__default.createElement(Link$1, __assign({ as: element, href: href, variant: variant, format: format }, props), children));
}
export { Link };