void/components/PostGrid.tsx
2022-08-10 00:35:26 +02:00

18 lines
448 B
TypeScript

import Post from "./Post";
import styles from "styles/Posts.module.sass";
import { SocialButton } from "utils/types";
import { CSSProperties } from "react";
const PostGrid = ({ posts, style }: { posts: any; style?: CSSProperties }) => {
return (
<>
<div className={styles.grid} style={style}>
{posts.map((post, index) => {
return <Post {...post} />;
})}
</div>
</>
);
};
export default PostGrid;