/* * Copyright (C) Contributors to the Suwayomi project * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import React from 'react'; import makeStyles from '@mui/styles/makeStyles'; import Card from '@mui/material/Card'; import CardActionArea from '@mui/material/CardActionArea'; import CardMedia from '@mui/material/CardMedia'; import Typography from '@mui/material/Typography'; import { Link } from 'react-router-dom'; import { Grid } from '@mui/material'; import useLocalStorage from 'util/useLocalStorage'; const useStyles = makeStyles({ root: { height: '100%', width: '100%', display: 'flex', }, wrapper: { position: 'relative', height: '100%', }, gradient: { position: 'absolute', top: 0, width: '100%', height: '100%', background: 'linear-gradient(to bottom, transparent, #000000)', opacity: 0.5, }, title: { position: 'absolute', bottom: 0, padding: '0.5em', color: 'white', }, image: { height: '100%', width: '100%', }, }); interface IProps { manga: IMangaCard } const AnimeCard = React.forwardRef((props: IProps, ref) => { const { manga: { id, title, thumbnailUrl, }, } = props; const classes = useStyles(); const [serverAddress] = useLocalStorage('serverBaseURL', ''); return ( {/* @ts-ignore */}
{title}
); }); export default AnimeCard;