import * as React from 'react' import { Theme } from '@mui/material/styles' import { withStyles } from '@mui/styles' interface Props { keyboardKey: string classes: any } class Key extends React.Component { constructor(props: any) { super(props) this.state = { location: 'bottom' } } public render() { return (
{this.props.keyboardKey}
) } } const style = (theme: Theme) => ({ keyStyle: { display: 'inline-block' as const, width: '1em', height: '1em', backgroundColor: '#bbb', borderRadius: '10%', verticalAlign: 'middle' as const, textAlign: 'center' as const, textShadow: '1px 1px rgba(255,255,255,0.45)', boxShadow: '0.08em 0.15em 0.01em 0px rgba(100,100,100,0.75)', }, keyTextStyle: { marginTop: '0.65em', fontSize: '0.4em', fontWeight: 'bold' as const, }, }) export default withStyles(style)(Key)