/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-127afd4
 * Released under the MIT license.
 */

import { useDeprecationWarning } from '../../../_internal/index.js';
import { CONTAINER_STYLES, extractStyles, filterBaseProps, TEXT_STYLES, } from '../../../tasty/index.js';
const STYLE_LIST = [...CONTAINER_STYLES, ...TEXT_STYLES];
export function useAlert(props) {
    const { type, isDisabled = false, theme, shape = 'card', mods } = props;
    const styles = extractStyles(props, STYLE_LIST);
    useDeprecationWarning(typeof type === 'undefined', {
        property: 'type',
        name: 'Alert',
        betterAlternative: 'theme',
    });
    const _theme = isDisabled ? 'disabled' : theme ?? type ?? 'note';
    return {
        styles,
        mods: {
            shape,
            type: _theme,
            ...mods,
        },
        filteredProps: filterBaseProps(props, { eventProps: true }),
    };
}

        