export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
const sub = api.subscription.getUserPendingSubscriptions.useMutation().data;
const history = api.changesHistory.getCurrentUserHistoryChanges.useMutation().data;
return {
props: {
...(await serverSideTranslations(locale)),
sub,
history
},
};
};
export default function Dashboard({ sub, history}) {
...
export const getStaticProps: GetStaticProps = async ({ locale = "en" }) => {
const sub = api.subscription.getUserPendingSubscriptions.useMutation().data;
const history = api.changesHistory.getCurrentUserHistoryChanges.useMutation().data;
return {
props: {
...(await serverSideTranslations(locale)),
sub,
history
},
};
};
export default function Dashboard({ sub, history}) {
...