@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
34 lines • 1.31 kB
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Link from '@mui/material/Link';
import { styled } from "../../../helpers/styled";
import { StyledImg } from './styles';
var RenderLogo = function (_a) {
var alt = _a.alt, LinkComponent = _a.LinkComponent, linkProps = _a.LinkProps, src = _a.src;
var StyledLink = styled(LinkComponent || Link)(function () { return ({
height: '38.88%',
}); });
var children = (_jsx(StyledImg, { "$isWrapped": !!linkProps, alt: alt || 'Logo', "aria-label": alt || 'Logo', src: src }));
if (linkProps) {
return _jsx(StyledLink, __assign({}, linkProps, { children: children }));
}
return children;
};
export default RenderLogo;
//# sourceMappingURL=index.js.map