From 1b29392865330945cf5ac86e7c49a838870b4158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 17 Dec 2020 22:34:55 +0100 Subject: [PATCH] Create KatKayLa --- components/kat-kay-la.js | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 components/kat-kay-la.js diff --git a/components/kat-kay-la.js b/components/kat-kay-la.js new file mode 100644 index 0000000..c920c61 --- /dev/null +++ b/components/kat-kay-la.js @@ -0,0 +1,56 @@ +import React from 'react' +import PropTypes from 'prop-types' +import {useRouter} from 'next/router' +import { + Card, + CardContent, + CardActionArea, + Typography, + Grid +} from '@material-ui/core' +import {makeStyles} from '@material-ui/core/styles' + +const useStyles = makeStyles({ + root: { + minWidth: 275 + }, + bullet: { + display: 'inline-block', + margin: '0 2px', + transform: 'scale(0.8)' + }, + title: { + fontSize: 14 + }, + pos: { + marginBottom: 12 + } +}) + +export default function KatKayLa({tit, kombyen, route}) { + const classes = useStyles() + const router = useRouter() + + return ( + + + router.push(route)}> + + + {tit} + + + {kombyen} + + + + + + ) +} + +KatKayLa.propTypes = { + tit: PropTypes.string.isRequired, + kombyen: PropTypes.number.isRequired, + route: PropTypes.string.isRequired +}