'use client'; import PropTypes from 'prop-types'; // @next import { usePathname } from 'next/navigation'; import Chip from '@mui/material/Chip'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; // @project import GraphicsCard from '@/components/cards/GraphicsCard'; import GraphicsImage from '@/components/GraphicsImage'; import SvgIcon from '@/components/SvgIcon'; /*************************** PREVIEW CARD ***************************/ export default function PreviewCard({ title, theme, image, status }) { const pathname = usePathname(); const cardStyle = { bgcolor: theme && pathname.includes(theme) ? 'grey.100' : 'transparent', borderRadius: 3, padding: 1, '&:hover': { bgcolor: theme && pathname.includes(theme) ? 'grey.200' : 'grey.50', cursor: 'pointer' } }; return ( {title} {!status ? ( ) : ( )} ); } PreviewCard.propTypes = { title: PropTypes.any, theme: PropTypes.any, image: PropTypes.any, status: PropTypes.any };