mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-27 06:26:47 +08:00
15 lines
308 B
TypeScript
15 lines
308 B
TypeScript
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>;
|
|
}
|
|
}
|