Sha256: be3b54a7e57f338a7cc64bc28c06bba210b9186f5ed06cfaa1256d17b005f340

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

import React from "react";

interface Props {
  src: string;
}

export default function Placeholder(props: 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>
    );
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pages_core-3.15.4 app/javascript/components/ImageGrid/Placeholder.tsx
pages_core-3.15.3 app/javascript/components/ImageGrid/Placeholder.tsx
pages_core-3.15.2 app/javascript/components/ImageGrid/Placeholder.tsx
pages_core-3.15.1 app/javascript/components/ImageGrid/Placeholder.tsx