File "Placeholder.js"

Full path: /home/satkhirabarta/public_html/wp-content/plugins/complianz-gdpr/settings/src/Placeholder/Placeholder.js
File size: 408 B (408 B bytes)
MIME-type: text/x-java
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

import Error from "../utils/Error";


const Placeholder = (props) => {
	let lines = props.lines;
	if ( !lines ) lines = 4;
	return (
		<div className={"cmplz-placeholder cmplz-placeholder-count-"+lines}>
			{props.error && <Error error={props.error} /> }
			{Array.from({length: lines}).map((item, i) => (<div className="cmplz-placeholder-line" key={i} ></div>))}
		</div>
	);
}

export default Placeholder;