import { h } from 'preact' ; import style from './spinner.module.css' ; type SpinnerProps = { balls ? : boolean ; } ; export default function Spinner ( { balls } ) { if ( balls ) { return ( < div className = { style . balls } > < div className = { style . ball } /> < div className = { style . ball } / > < div className = { style . ball } /> < /div>); } return ( < div className = { style . container } / > ) ; }