interface Credentials { api_key: string; } class Panel { constructor() {} // this method is responsible for fetching credentials from the server async getCredentials(): Promise { return { api_key: `${process.env.NEXT_PUBLIC_API_KEY}`, }; } } export default Panel;