LinkList/frontend/pages/editor/index.tsx

28 lines
600 B
TypeScript

import React from "react";
import { GetStaticProps } from "next";
import Analytics from "components/Analytics/index";
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 });
return (
<div>
<Analytics />
</div>
);
};
export default Editor;