import { EnhancedModularDrawerConfigurationSchema, } from "./types";
export const defaultDrawerConfiguration = {
    assets: {
        rightElement: "balance",
    },
    networks: {
        leftElement: "numberOfAccounts",
    },
};
export function validateAndTransformConfigurationWithZod(config) {
    const result = EnhancedModularDrawerConfigurationSchema.safeParse(config);
    if (!result.success) {
        console.warn("Modular Drawer invalid configuration received:", result.error);
        return {};
    }
    return result.data;
}
export function createModularDrawerConfiguration(config) {
    const validatedConfig = validateAndTransformConfigurationWithZod(config);
    return {
        ...defaultDrawerConfiguration,
        ...validatedConfig,
    };
}
//# sourceMappingURL=utils.js.map