import { MyAppComponent } from '@shopstack/cs-admin-lib';
import { getInitProps } from '@shopstack/cs-admin-lib/server'
import '../styles/global.css';
import { Prompt, Sarabun } from 'next/font/google';

const prompt = Prompt({
  subsets: ["thai", "latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

const sarabun = Sarabun({
  subsets: ["thai", "latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800"],
});

function AppComponent({ Component, pageProps }) {
  return <MyAppComponent Component={Component} pageProps={pageProps} fonts={{ prompt, sarabun }} />
}

AppComponent.getInitialProps = getInitProps

export default AppComponent