mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-26 19:47:30 +00:00
23 lines
483 B
JavaScript
23 lines
483 B
JavaScript
import React from "react";
|
|
import classnames from "classnames";
|
|
|
|
export default class Minimize extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state = { clicked: false };
|
|
}
|
|
render() {
|
|
return (
|
|
<div
|
|
id="minimize"
|
|
className={classnames(this.state)}
|
|
onClick={() => {
|
|
if (!this.state.clicked) {
|
|
this.setState({ clicked: true });
|
|
}
|
|
}}
|
|
title="Minimize"
|
|
/>
|
|
);
|
|
}
|
|
}
|