import Text from "@geist-ui/core/dist/text" import NextLink from "next/link" import Link from '../Link' import styles from './post-list.module.css' import ListItemSkeleton from "./list-item-skeleton" import ListItem from "./list-item" type Props = { posts: any error: any } const PostList = ({ posts, error }: Props) => { return (
{error && Failed to load.} {!posts && } {posts?.length === 0 && You have no posts. Create one here.} { posts?.length > 0 &&
}
) } export default PostList