forked from summit-webapp-themes/maxima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dealer-ledger.tsx
35 lines (32 loc) · 1.07 KB
/
dealer-ledger.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from "react";
import { CONSTANTS } from "../services/config/app-config";
import MetaTag from "../services/api/general_apis/meta-tag-api";
import DealerLedger from "../components/DealerLedger/DealerLedger";
const Checkout = () => {
return (
<>
<DealerLedger />
</>
);
};
// export async function getServerSideProps(context: any) {
// const method = "get_meta_tags";
// const version = "v1";
// const entity = "seo";
// const params = `?version=${version}&method=${method}&entity=${entity}`;
// const url = `${context.resolvedUrl.split("?")[0]}`;
// console.log("context url", url);
// if (CONSTANTS.ENABLE_META_TAGS) {
// let meta_data: any = await MetaTag(
// `${CONSTANTS.API_BASE_URL}${CONSTANTS.API_MANDATE_PARAMS}${params}&page_name=${url}`
// );
// if (meta_data !== null && Object.keys(meta_data).length > 0) {
// return { props: { meta_data } };
// } else {
// return { props: {} };
// }
// } else {
// return { props: {} };
// }
// }
export default Checkout;