@hypothesis/frontend-shared
Version:
Shared components, styles and utilities for Hypothesis projects
32 lines (30 loc) • 900 B
JavaScript
var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/navigation/LinkBase.js";
import { downcastRef } from '../../util/typing';
/**
* @typedef {import('../../types').BaseProps} BaseProps
* @typedef {import('preact').JSX.HTMLAttributes<HTMLAnchorElement>} HTMLAnchorAttributes
*/
/**
* Base component for Link components. Applies common attributes.
*
* @param {BaseProps & HTMLAnchorAttributes} props
*/
import { jsxDEV as _jsxDEV } from "preact/jsx-dev-runtime";
export default function LinkBase({
children,
className,
elementRef,
...htmlAttributes
}) {
return _jsxDEV("a", { ...htmlAttributes,
className: className,
rel: "noopener noreferrer",
ref: downcastRef(elementRef),
children: children
}, void 0, false, {
fileName: _jsxFileName,
lineNumber: 21,
columnNumber: 5
}, this);
}
//# sourceMappingURL=LinkBase.js.map