mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 01:29:22 +00:00
15 lines
468 B
TypeScript
15 lines
468 B
TypeScript
import React from "react";
|
|
import classnames from "classnames";
|
|
|
|
import * as Actions from "../../actionCreators";
|
|
import { useTypedSelector, useActionCreator } from "../../hooks";
|
|
|
|
const EqAuto = React.memo(() => {
|
|
const selected = useTypedSelector(state => state.equalizer.auto);
|
|
const toggleAuto = useActionCreator(Actions.toggleEqAuto);
|
|
return (
|
|
<div id="auto" className={classnames({ selected })} onClick={toggleAuto} />
|
|
);
|
|
});
|
|
|
|
export default EqAuto;
|