/** * Entity Form Wrapper * * High-level wrapper that converts entityType string to entityConfig * and handles form submission logic * * Refactored to use useEntityConfig hook for better performance and consistency * * NOTE: Permission validation is now handled at the layout level * (app/dashboard/(main)/[entity]/layout.tsx) for better security. * The layout validates permissions BEFORE this component renders. */ import React from 'react'; export interface EntityFormWrapperProps { entityType: string; mode: 'create' | 'edit'; id?: string; initialData?: Record; onSuccess?: (createdId?: string) => void; onError?: (error: Error) => void; className?: string; headerActions?: React.ReactNode; } export declare function EntityFormWrapper({ entityType, mode, id, initialData: propsInitialData, onSuccess, onError, className, headerActions: additionalHeaderActions }: EntityFormWrapperProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=EntityFormWrapper.d.ts.map