mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add darkmode switch button
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import { Component } from "preact";
|
||||
import Icon from "preact-material-components/Icon";
|
||||
|
||||
type Props = {
|
||||
show: boolean;
|
||||
icon: string;
|
||||
};
|
||||
|
||||
export default class MyIcon extends Component<Props> {
|
||||
render() {
|
||||
if (!this.props.show) return;
|
||||
return <Icon>{this.props.icon}</Icon>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user