import ButtonGrid from "components/ButtonGrid"; import Lanyard from "components/Lanyard"; import Navbar from "components/Navbar"; import getProfiles from "utils/shared/profiles"; import getProjects from "utils/shared/projects"; import { getAllPostIDs, getPostData, getSortedPosts } from "utils/shared/posts"; import { SocialButton } from "utils/types"; import styles from "styles/Index.module.sass"; // import Link from "components/Link"; // import Post from "components/Post"; // import PostGrid from "components/PostGrid"; import useSwr from 'swr'; export async function getStaticProps() { const profiles = await getProfiles(); const posts = await getSortedPosts(); const projects = await getProjects("showcase-lio") return { props: { profiles, posts, projects }, }; } const IndexPage = (props: { profiles: SocialButton[]; posts: Array; projects: SocialButton[] }) => { const showposts = false return ( <>

Profiles

Projects

{/* {showposts && (

Posts

)} */}
); }; export default IndexPage