import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig, vui } from '../core';
import Icon from '../icon';
import { cs } from '../utils';
import { useLinkContext } from './context';
/** Displays an icon within the Link. */
export const LinkIcon = vui((props, ref) => {
    const { className, ...rest } = props;
    const styles = useStyleConfig('Link', useLinkContext());
    return _jsx(Icon, { className: cs('vui-linkIcon', className), ref: ref, ...styles.icon, ...rest });
});
LinkIcon.displayName = 'LinkIcon';
export default LinkIcon;
//# sourceMappingURL=linkIcon.js.map