I want to export this keys to app.js but cant do it showing this error :-
'const' can only be used in a .ts file.
ApiKey.js
import React from 'react';
const firebaseConfig;
export default class firekeys extends React.Component {
const firebaseConfig ={
apiKey: "key",
authDomain: "auth",
databaseURL: "url",
projectId: "Id",
storageBucket: "",
messagingSenderId: "SID"
}
};
App.js
import React from 'react';
import firekeys from "./constants/ApiKeys"
import * as firebase from 'firebase';
firebase.initializeApp(firekeys.firebaseConfig);