2023-01-11 22:47:38 +00:00
|
|
|
import AppLayout from 'components/layout/AppLayout';
|
2023-01-10 07:59:26 +00:00
|
|
|
import TestConsole from 'components/pages/console/TestConsole';
|
2020-07-24 02:56:55 +00:00
|
|
|
|
2023-02-28 04:03:04 +00:00
|
|
|
export default function ConsolePage({ disabled }) {
|
|
|
|
|
if (disabled) {
|
2020-09-27 07:51:29 +00:00
|
|
|
return null;
|
2020-09-18 20:40:46 +00:00
|
|
|
}
|
|
|
|
|
|
2020-07-24 02:56:55 +00:00
|
|
|
return (
|
2023-01-11 22:47:38 +00:00
|
|
|
<AppLayout>
|
2020-09-29 03:23:42 +00:00
|
|
|
<TestConsole />
|
2023-01-11 22:47:38 +00:00
|
|
|
</AppLayout>
|
2020-07-24 02:56:55 +00:00
|
|
|
);
|
|
|
|
|
}
|
2022-10-22 04:33:23 +00:00
|
|
|
|
|
|
|
|
export async function getServerSideProps() {
|
|
|
|
|
return {
|
2022-10-27 19:14:34 +00:00
|
|
|
props: {
|
2023-02-28 04:03:04 +00:00
|
|
|
disabled: !process.env.ENABLE_TEST_CONSOLE,
|
2022-10-27 19:14:34 +00:00
|
|
|
},
|
2022-10-22 04:33:23 +00:00
|
|
|
};
|
|
|
|
|
}
|