import { h, Component } from 'preact'; // import Button from 'preact-material-components/Button'; // import Switch from 'preact-material-components/Switch'; // import 'preact-material-components/Switch/style.css'; import * as style from './style.scss'; import { FileObj } from '../app'; type Props = { files: FileObj[] }; type State = { active: boolean }; export default class Home extends Component { state: State = { active: false }; componentDidMount() { setTimeout(() => { this.setState({ active: true }); }); } render({ files }: Props, { active }: State) { return (
{ files && files[0] && ( ) || (

Squoosh

Test home content

) }
); } }