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 { Theme } from "../theme/Theme.js";
import { cl } from "../utils/helpers/index.js";
import InternalHeaderButton from "./InternalHeaderButton.js";
import InternalHeaderTitle from "./InternalHeaderTitle.js";
import InternalHeaderUser from "./InternalHeaderUser.js";
import InternalHeaderUserButton from "./InternalHeaderUserButton.js";
/**
 * Simple Header for internal pages and systems.
 *
 * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/i-header)
 * @see 🏷️ {@link InternalHeaderProps}
 *
 * @example
 * ```jsx
 * <InternalHeader>
 *   <InternalHeader.Title as="h1">Sykepenger</InternalHeader.Title>
 *   <Spacer />
 *   <InternalHeader.User name="Ola Normann"  />
 * </InternalHeader>
 * ```
 * @example
 * ```jsx
 * <InternalHeader >
 *  <InternalHeader.Title href="/#home">Tittel med lenke</InternalHeader.Title>
 *  <ActionMenu>
 *   <ActionMenu.Trigger>
 *    <InternalHeader.Button>
 *      <MenuGridIcon title="MenuGridIconer og oppslagsverk" />
 *    </InternalHeader.Button>
 *   </ActionMenu.Trigger>
 *  </ActionMenu>
 * </InternalHeader>
 * ```
 */
export const InternalHeader = forwardRef((_a, ref) => {
    var { className } = _a, rest = __rest(_a, ["className"]);
    /*
     * Component is always in "dark" mode, so we manually override global theme.
     */
    return (React.createElement(Theme, { theme: "dark", asChild: true, hasBackground: false },
        React.createElement("header", Object.assign({}, rest, { ref: ref, className: cl("aksel-internalheader", className) }))));
});
InternalHeader.Title = InternalHeaderTitle;
InternalHeader.User = InternalHeaderUser;
InternalHeader.Button = InternalHeaderButton;
InternalHeader.UserButton = InternalHeaderUserButton;
export default InternalHeader;
export { InternalHeaderTitle, InternalHeaderUser, InternalHeaderButton, InternalHeaderUserButton, };
//# sourceMappingURL=InternalHeader.js.map