Sha256: 8fc854755fce606a5d5581380659e14c86289b3777a8dac07f96193f0a2497f1
Contents?: true
Size: 441 Bytes
Versions: 15
Compression:
Stored size: 441 Bytes
Contents
import React from "react"; import PropTypes from "prop-types"; export default function Placeholder(props) { if (props.src) { return ( <div className="temp-image"> <img src={props.src} /> <span>Uploading...</span> </div> ); } else { return ( <div className="file-placeholder"> <span>Uploading...</span> </div> ); } } Placeholder.propTypes = { src: PropTypes.string };
Version data entries
15 entries across 15 versions & 1 rubygems