Files
eh-downloader/components/MyIcon.tsx
2023-06-25 22:03:45 +09:00

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>;
}
}