loading file into text editor
This commit is contained in:
16
app/components/Panel/index.tsx
Normal file
16
app/components/Panel/index.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user