Files
client_panel/app/components/Panel/index.tsx

17 lines
304 B
TypeScript

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