import React, { forwardRef } from "react"; import { XMarkIcon } from "@navikt/aksel-icons"; import { Button } from "../../../button"; import { cl } from "../../../utils/helpers"; import { useI18n } from "../../../utils/i18n/i18n.hooks"; type BaseAlertCloseButtonProps = React.ButtonHTMLAttributes; /** * @see 🏷️ {@link BaseAlertCloseButtonProps} * @example * ```jsx * * * Info title * * * * ``` */ const BaseAlertCloseButton = forwardRef< HTMLButtonElement, BaseAlertCloseButtonProps >(({ className, ...restProps }: BaseAlertCloseButtonProps, forwardedRef) => { const translate = useI18n("global"); return (