import { s as LanguageLocales } from "../../constants2.js";
import { n as useLanguage } from "../../useLanguage.js";
import { t as Drawer_default } from "../../Drawer.js";
import { jsx } from "react/jsx-runtime";
import styles from "./styles.module.scss";
var HN_Designsystem_HelpDrawer_nb_NO_default = { ariaLabel: "Hjelpetekst" };
const getResources = (language) => {
	switch (language) {
		case LanguageLocales.NORWEGIAN:
		default: return HN_Designsystem_HelpDrawer_nb_NO_default;
	}
};
var HelpDrawer = (props) => {
	const { resources, ...drawerProps } = props;
	const { language } = useLanguage(LanguageLocales.NORWEGIAN);
	const defaultResources = getResources(language);
	const mergedResources = {
		...defaultResources,
		...resources,
		ariaLabel: props.resources?.ariaLabel ?? defaultResources.ariaLabel
	};
	return /* @__PURE__ */ jsx(Drawer_default, {
		...drawerProps,
		closeColor: "plum",
		headerClasses: styles["help-drawer"],
		desktopDirection: "left",
		ariaLabel: mergedResources.ariaLabel
	});
};
var HelpDrawer_default = HelpDrawer;
export { HelpDrawer_default as default };

//# sourceMappingURL=index.js.map