@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
16 lines • 1.14 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { STYLES_NAME } from '../../constants/stylesName/stylesName';
import { useStyles } from '../../hooks/useStyles/useStyles';
import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary';
import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent';
import { IconHighlightedStandAlone } from './iconHighlightedStandAlone';
// eslint-disable-next-line react/display-name
const IconHighlightedComponent = React.forwardRef(({ ctv, ...props }, ref) => {
const variantStyles = useStyles(STYLES_NAME.ICON_HIGHLIGHTED, props.variant, ctv);
return _jsx(IconHighlightedStandAlone, { ...props, ref: ref, styles: variantStyles });
});
const IconHighlightedBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(IconHighlightedStandAlone, { ...props, ref: ref }) }), children: _jsx(IconHighlightedComponent, { ...props, ref: ref }) }));
const IconHighlighted = React.forwardRef(IconHighlightedBoundary);
export { IconHighlighted };
//# sourceMappingURL=iconHighlighted.js.map