Import repositories from gitlab
This commit is contained in:
25
next/components/pressBlock/index.jsx
Normal file
25
next/components/pressBlock/index.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import ArticleBlock from "../articleBlock";
|
||||
import ImageBlock from "../imageBlock";
|
||||
import styles from "./style.module.scss";
|
||||
|
||||
export default function PressBlock({
|
||||
left: {type: leftType, ...left},
|
||||
right: {type: rightType, ...right},
|
||||
...props
|
||||
}) {
|
||||
return (
|
||||
<section {...props} className={styles.pressBlock}>
|
||||
{
|
||||
leftType ? leftType === 'article' ?
|
||||
<ArticleBlock {...left} className={styles.pressArticle}/> :
|
||||
<ImageBlock {...left} className={styles.pressImage}/> : null
|
||||
}
|
||||
|
||||
{
|
||||
rightType ? rightType === 'article' ?
|
||||
<ArticleBlock {...right} className={styles.pressArticle}/> :
|
||||
<ImageBlock {...right} className={styles.pressImage}/> : null
|
||||
}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user