infinity-forge
Version:
33 lines (32 loc) • 1 kB
TypeScript
import { DynamicFormHandlerProps, DynamicSection, InputProps } from '../../../../../ui/index.js';
type DynamicFieldsKeys = 'title' | 'subtitle' | 'linkText' | 'linkUrl' | 'videoUrl' | 'images' | 'description';
export type DynamicFieldsSection = Partial<{
[key in DynamicFieldsKeys]: Partial<InputProps>;
}>;
export type DynamicSectionResult<J = any> = Partial<DynamicSection<J> & {
title: string;
subtitle: string;
description: string;
linkText: string;
}> & {
Section({ children }: {
children?: React.ReactNode;
}): React.ReactNode;
};
export type DynamicSectionProps = {
isGlobal?: boolean;
editModeIsOutside?: boolean;
fields?: DynamicFieldsSection;
refSection: DynamicSection['ref'];
customForm?: DynamicFormHandlerProps & {
modal?: {
styles?: React.CSSProperties;
};
};
templates?: {
VersionsElement?: {
[key: string]: (props: any) => React.ReactNode;
};
};
};
export {};