Files
klz-cables.com/.pnpm-store/v10/files/ed/c80eac6b7d47afda7fe69ec173c18143baa96cfe9ffebd945c999d98e7ee21f2186a11bf9337d10d59c8f1fb3c66cb7f09d576fcbb8f2211048e85e7dfb9d0
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

29 lines
982 B
Plaintext

import { ModalProviderProps } from '../ModalProvider/index.js';
export type ModalStatus = {
slug: string;
isOpen: boolean;
openedOn?: number;
};
export type ModalState = {
[slug: string]: ModalStatus;
};
export interface IModalContext extends ModalProviderProps {
transTime: number;
containerRef: React.RefObject<HTMLElement>;
modalState: ModalState;
oneModalIsOpen: boolean;
isModalOpen: (slug: string) => boolean;
closeOnBlur: boolean;
bodyScrollIsLocked: boolean;
classPrefix?: string;
closeAllModals: () => void;
setCloseOnBlur: (set: boolean) => void;
openModal: (slug: string) => void;
closeModal: (slug: string) => void;
toggleModal: (slug: string) => void;
setContainerRef: (ref: HTMLElement) => void;
setBodyScrollLock: (shouldLock: boolean, // eslint-disable-line no-unused-vars
excludingRef: HTMLElement) => void;
}
export declare const ModalContext: import("react").Context<IModalContext>;