import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
import React from 'react';
import Link from '../link/index.js';

var AlertLink = function (_a) {
    var text = _a.text, props = __rest(_a, ["text"]);
    var linkProps = (props === null || props === void 0 ? void 0 : props.as) === 'button'
        ? __assign(__assign({}, props), { textAlign: 'left' }) : __assign(__assign({}, props), { as: (props === null || props === void 0 ? void 0 : props.as) === 'link' ? 'a' : props === null || props === void 0 ? void 0 : props.as, href: props === null || props === void 0 ? void 0 : props.url });
    return (React.createElement(Link, __assign({}, linkProps, { display: "inline-block", width: "fit-content" }), text));
};

export { AlertLink as default };
//# sourceMappingURL=Link.js.map
