import styles from '@system/layouts/CardHandLayout.module.scss'; import * as React from 'react'; // Source: https://commons.wikimedia.org/wiki/File:Card_back_01.svg // This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See version 2.1 and version 3 of the GNU Lesser General Public License for more details. const CardBack = (props) => { return ( ); }; const Card = (props) => { let style = {}; if (props.selectedIndex === props.index) { style = { transform: `rotateY(180deg) scale(2)`, zIndex: 1 }; } return (