Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 430 Bytes

index.mdx

File metadata and controls

21 lines (18 loc) · 430 Bytes

import { useData } from "nextra/hooks"; import { createHighlighter } from "shiki"; import { getCodes } from "../lib/codes"; import { Home } from "../components/Home";

export const getStaticProps = async () => { return { props: { ssg: { codes: await getCodes(), }, }, }; };

export const HomeContainer = () => { const { codes } = useData(); return ; };