{"version":3,"file":"settings-page.mjs","sourceRoot":"","sources":["../../../src/types/handlers/settings-page.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentOrElement } from '..';\n\n/**\n * The `onSettingsPage` handler. This is called when the user navigates to the\n * Snap's settings page in the MetaMask UI.\n *\n * This function does not receive any arguments.\n *\n * @returns The content to display on the settings page. See\n * {@link OnSettingsPageResponse}.\n */\nexport type OnSettingsPageHandler = () => Promise<OnSettingsPageResponse>;\n\n/**\n * The content to display on the settings page.\n *\n * @property content - A custom UI component, that will be shown in MetaMask.\n * @property id - A custom UI interface ID, that will be shown in MetaMask.\n */\nexport type OnSettingsPageResponse =\n  | {\n      content: ComponentOrElement;\n    }\n  | { id: string };\n"]}