import React from 'react'; import { DEFAULT_PAGE_SIZE } from '../../constants/common'; import {getLanguages} from "../../actions/tags"; import {fetchBlogPosts} from "../../lib/contentful/blogPosts"; import {fetchBlogPostCategories} from "../../lib/contentful/blogPostsCategories"; import {BlogPostsList} from "./BlogPostsList"; import {BlogPostCategories} from "./BlogPostCategories"; type PostsProps = { basePath: string; locale: string; pageSize?: number; currentCat: string; page?: number }; export const BlogPosts = async ({ basePath = '/', locale, pageSize = DEFAULT_PAGE_SIZE, currentCat = '', page = 1 }: PostsProps) => { const languages = await getLanguages(locale); const {data, total} = await fetchBlogPosts({preview: false, category: currentCat, page: page}) const cats = await fetchBlogPostCategories(false) return (
The ins-and-outs of building a career in tech, gaining
experience
from a mentor, and getting your feet wet with coaching.