var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React, { forwardRef } from "react";
import { useThemeInternal } from "../../../theme/Theme.js";
import { BodyLong } from "../../../typography/index.js";
import { cl } from "../../../utils/helpers/index.js";
import { useBaseAlert } from "../root/BaseAlertRoot.context.js";
/**
 * @see 🏷️ {@link BaseAlertContentProps}
 * @example
 * ```jsx
 *  <BaseAlert>
 *    <BaseAlert.Header>
 *      <BaseAlert.Title>Info title</BaseAlert.Title>
 *    </BaseAlert.Header>
 *
 *    <BaseAlert.Content>Content</BaseAlert.Content>
 *  </BaseAlert>
 * ```
 */
const BaseAlertContent = forwardRef((_a, forwardedRef) => {
    var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
    const themeContext = useThemeInternal();
    const { size } = useBaseAlert();
    return (React.createElement(BodyLong, Object.assign({ as: "div", ref: forwardedRef, "data-color": themeContext === null || themeContext === void 0 ? void 0 : themeContext.color, size: size }, restProps, { className: cl(className, "aksel-base-alert__content") }), children));
});
export { BaseAlertContent };
//# sourceMappingURL=BaseAlertContent.js.map