1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00
This commit is contained in:
muerwre 2019-07-23 19:08:55 +07:00
parent ef71e55543
commit 1b001db91a
6 changed files with 34 additions and 8 deletions

View file

@ -1,19 +1,22 @@
import React, { FC } from 'react';
import * as styles from './styles.scss';
import classNames = require("classnames");
interface IProps {
height?: number;
width?: number;
title?: string;
is_hero?: boolean;
}
const Cell: FC<IProps> = ({
width = 1,
height = 1,
title,
is_hero,
}) => (
<div
className={styles.cell}
className={classNames(styles.cell, { is_hero })}
style={{
gridRowEnd: `span ${height}`,
gridColumnEnd: `span ${width}`,