import React from 'react'; export interface Props { apiKey: string; rootPath: string; } export const ApiKeysAddedModal = (props: Props) => { return (

API Key Created

Key {props.apiKey}
You will only be able to view this key here once! It is not stored in this form. So be sure to copy it now.

You can authenticate request using the Authorization HTTP header, example:

            curl -H "Authorization: Bearer {props.apiKey}" {props.rootPath}/api/dashboards/home
          
); }; export default ApiKeysAddedModal;