Skip to content
Snippets Groups Projects

Resolve "Adding basic post component"

All threads resolved!
1 file
+ 25
0
Compare changes
  • Side-by-side
  • Inline
import { FC, PropsWithChildren } from "react";
import styles from "../../styles/HiddenPost.module.css"
import { BsEyeSlash } from 'react-icons/bs';
type HiddenPostProps ={
UserColors: string[];
}
const HiddenPost: FC<PropsWithChildren<HiddenPostProps>> = ({
UserColors
}) => {
const shuffledColors = UserColors.sort((a: string, b: string) => 0.5 - Math.random());
return (
<div className={styles.hiddenCard}>
<div className={styles.hiddenCardContent}>
<BsEyeSlash size={50}/>
<p className={styles.title}>Post Hidden</p>
<p className={styles.text}>Post a thought to view</p>
</div>
</div>
)
}
export default HiddenPost;
Loading