"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLogic = void 0;
const personalDataSecurity_1 = require("../../personalDataSecurity");
const classNames_1 = require("../../utils/classNames");
const useLogic = (props) => {
    const { children, className: propClassName, width, style, ...restProps } = props;
    const hidePersonalDataClassName = (0, personalDataSecurity_1.useHidePersonalData)({
        type: 'container',
    });
    const className = (0, classNames_1.classNames)(propClassName, {
        [hidePersonalDataClassName]: children.props.className?.includes(hidePersonalDataClassName),
    });
    const tooltipStyle = {
        '--tooltip-width': width,
        ...style,
    };
    return {
        children,
        className,
        tooltipStyle,
        width,
        ...restProps,
    };
};
exports.useLogic = useLogic;
