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
21 lines
642 B
Plaintext
21 lines
642 B
Plaintext
import type { ClientWidget, WidgetWidth } from 'payload';
|
|
import React from 'react';
|
|
export type WidgetItem = {
|
|
id: string;
|
|
maxWidth: WidgetWidth;
|
|
minWidth: WidgetWidth;
|
|
width: WidgetWidth;
|
|
};
|
|
export type WidgetInstanceClient = {
|
|
component: React.ReactNode;
|
|
item: WidgetItem;
|
|
};
|
|
export type DropTargetWidget = {
|
|
position: 'after' | 'before';
|
|
widget: WidgetInstanceClient;
|
|
} | null;
|
|
export declare function ModularDashboardClient({ clientLayout: initialLayout, widgets, }: {
|
|
clientLayout: WidgetInstanceClient[];
|
|
widgets: ClientWidget[];
|
|
}): React.JSX.Element;
|
|
//# sourceMappingURL=index.client.d.ts.map |