/** @license MIT | @cube-dev/ui-kit v0.127.1 | Cube Dev Team */
import { extractStyles } from "../../../utils/styles.js";
import { useDeprecationWarning } from "../../../_internal/hooks/use-deprecation-warning.js";
import { CONTAINER_STYLES, TEXT_STYLES, filterBaseProps } from "@tenphi/tasty";

//#region src/components/content/Alert/use-alert.ts
const STYLE_LIST = [...CONTAINER_STYLES, ...TEXT_STYLES];
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"
	});
	return {
		styles,
		mods: {
			shape,
			type: isDisabled ? "disabled" : theme ?? type ?? "note",
			...mods
		},
		filteredProps: filterBaseProps(props, { eventProps: true })
	};
}

//#endregion
export { useAlert };
//# sourceMappingURL=use-alert.js.map