import { PluginSettingsLayout , TextFieldWithTooltip } from '@cromwell/admin-panel' ; import { TPluginSettingsProps } from '@cromwell/core' ; import React from 'react' ; import { SettingsType } from '../../types' ; export function SettingsPage ( props ) { return ( < PluginSettingsLayout < SettingsType > { ... props } > { ( { pluginSettings , changeSetting } ) => ( < > < TextFieldWithTooltip tooltipText = "https://stripe.com/docs/keys" tooltipLink = "https://stripe.com/docs/keys" label = "Stripe Secret API Key" value = { pluginSettings ?. stripeApiKey ?? '' } fullWidth onChange = { ( event ) => changeSetting ( 'stripeApiKey' , event . target . value ) } /> < />)} < /PluginSettingsLayout>); }