LinkList/frontend/pages/editor/index.tsx

28 lines
600 B
TypeScript
Raw Normal View History

2021-03-03 18:51:53 -05:00
import React from "react";
import { GetStaticProps } from "next";
2021-03-28 15:22:16 -04:00
import Analytics from "components/Analytics/index";
2021-03-03 18:51:53 -05:00
export const getStaticProps: GetStaticProps = async () => {
// TODO: Fetch links here
return {
props: { data: null }, // will be passed to the page component as props
// Next.js will attempt to re-generate the page:
// - When a request comes in
// - At most once every second
revalidate: 1,
};
};
const Editor: React.FC = ({ data }: any) => {
console.log({ data });
2021-03-03 16:38:09 -05:00
return (
2021-03-28 15:22:16 -04:00
<div>
<Analytics />
2021-03-03 16:38:09 -05:00
</div>
2021-03-03 18:51:53 -05:00
);
};
export default Editor;