@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
52 lines • 2.11 kB
TypeScript
import { z } from "zod";
export type ModularDrawerConfiguration = {
assets?: {
filter?: string;
leftElement?: string;
rightElement?: string;
};
networks?: {
rightElement?: string;
leftElement?: string;
};
};
export declare const filterOptions: readonly ["topNetworks", "undefined"];
export declare const assetsLeftElementOptions: readonly ["apy", "marketTrend", "undefined"];
export declare const assetsRightElementOptions: readonly ["balance", "marketTrend", "undefined"];
export declare const networksLeftElementOptions: readonly ["numberOfAccounts", "numberOfAccountsAndApy", "undefined"];
export declare const networksRightElementOptions: readonly ["balance", "undefined"];
export declare const EnhancedModularDrawerConfigurationSchema: z.ZodObject<{
assets: z.ZodOptional<z.ZodObject<{
filter: z.ZodOptional<z.ZodEnum<{
undefined: "undefined";
topNetworks: "topNetworks";
}>>;
leftElement: z.ZodOptional<z.ZodEnum<{
undefined: "undefined";
apy: "apy";
marketTrend: "marketTrend";
}>>;
rightElement: z.ZodOptional<z.ZodEnum<{
undefined: "undefined";
balance: "balance";
marketTrend: "marketTrend";
}>>;
}, z.core.$strip>>;
networks: z.ZodOptional<z.ZodObject<{
leftElement: z.ZodOptional<z.ZodEnum<{
undefined: "undefined";
numberOfAccounts: "numberOfAccounts";
numberOfAccountsAndApy: "numberOfAccountsAndApy";
}>>;
rightElement: z.ZodOptional<z.ZodEnum<{
undefined: "undefined";
balance: "balance";
}>>;
}, z.core.$strip>>;
}, z.core.$strip>;
/**
* Enhanced configuration for the modular drawer.
* Extends the base configuration by allowing customization of `assets` and `networks` properties.
*/
export type EnhancedModularDrawerConfiguration = Omit<ModularDrawerConfiguration, "assets" | "networks"> & z.infer<typeof EnhancedModularDrawerConfigurationSchema>;
//# sourceMappingURL=types.d.ts.map