import { ReactNode, ComponentType } from 'react';
import { LayoutSection } from '@medusajs/admin-shared';

type LayoutComponentProps = {
    sections: Record<string, ReactNode>;
    data?: unknown;
    className?: string;
};
type LayoutControlSize = "default" | "small" | "xsmall";
type LayoutDefinition = {
    id: string;
    sections: LayoutSection[];
    Component: ComponentType<LayoutComponentProps>;
};

export type { LayoutDefinition as L, LayoutControlSize as a, LayoutComponentProps as b };
