import React from 'react'; interface SpacerProps { size?: number; } const styles = { padding: '15px 0', height: '1px' }; const Comp = ({ ...props }): JSX.Element => (
); const Spacer = ({ size = 1 }: SpacerProps): JSX.Element => size === 1 ? ( ) : ( <> {Array.from(Array(size), (_, i) => ( ))} ); export default Spacer;