@i-novus/ui-core
Version:
Базовые UI компоненты
13 lines (12 loc) • 531 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useConfigProvider } from '../core';
export const Sticker = ({ className, prefix, children, visible = true, style }) => {
const { getPrefix } = useConfigProvider();
const prefixCls = getPrefix(prefix);
if (!visible) {
return null;
}
return (_jsx("div", { role: "presentation", className: classNames(`${prefixCls}-sticker`, className), style: style, children: children }));
};
Sticker.displayName = 'Sticker';