UNPKG

598 BJavaScriptView Raw
1"use client";
2
3import * as React from 'react';
4import classNames from 'classnames';
5import Anchor from '@restart/ui/Anchor';
6import { useBootstrapPrefix } from './ThemeProvider';
7import { jsx as _jsx } from "react/jsx-runtime";
8const AlertLink = /*#__PURE__*/React.forwardRef(({
9 className,
10 bsPrefix,
11 as: Component = Anchor,
12 ...props
13}, ref) => {
14 bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-link');
15 return /*#__PURE__*/_jsx(Component, {
16 ref: ref,
17 className: classNames(className, bsPrefix),
18 ...props
19 });
20});
21AlertLink.displayName = 'AlertLink';
22export default AlertLink;
\No newline at end of file