Files
klz-cables.com/.pnpm-store/v10/files/8f/13a2fcd19e08558b4376b2e65c2d825ccccd4d8b3ba40b57ddd1594a6a3e22c2ad233faef8a0807e28e910b4cac555c8fc6edf26bfeb911977853bbb5a58dc
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

20 lines
913 B
Plaintext

import type { WidgetWidth } from 'payload';
import React from 'react';
import type { WidgetInstanceClient } from './index.client.js';
export declare function useDashboardLayout(initialLayout: WidgetInstanceClient[]): {
addWidget: (widgetSlug: string) => void;
cancel: () => void;
cancelModal: React.FunctionComponentElement<import("@payloadcms/ui/elements/ConfirmationModal").ConfirmationModalProps>;
currentLayout: WidgetInstanceClient[];
deleteWidget: (widgetId: string) => void;
isEditing: boolean;
moveWidget: ({ moveFromIndex, moveToIndex }: {
moveFromIndex: number;
moveToIndex: number;
}) => void;
resetLayout: () => Promise<void>;
resizeWidget: (widgetId: string, newWidth: WidgetWidth) => void;
saveLayout: () => Promise<void>;
setIsEditing: React.Dispatch<React.SetStateAction<boolean>>;
};
//# sourceMappingURL=useDashboardLayout.d.ts.map