loading file into text editor

This commit is contained in:
2024-09-13 21:00:08 +00:00
parent 437701ffac
commit faa45f7fcf
6 changed files with 97 additions and 36 deletions

View 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;