19 | {lines.map((line) => (
20 |
{line}
21 | ))}
22 |
23 | );
24 | }
25 |
26 | function SingleImage(props) {
27 | const [imageUrl, setImageUrl] = useState(null);
28 | useEffect(() => {
29 | const asyncGetPresignedUrl = async () => {
30 | const k = describeS3Key({
31 | key: props.imageKey,
32 | });
33 | const url = await getPresignedUrl({
34 | path: `${k.scope}/${k.identity}/${k.jobId}/${k.filename}`,
35 | bucketKey: "awsReadableS3Bucket",
36 | });
37 | setImageUrl(url);
38 | };
39 |
40 | if (props.imageKey) {
41 | asyncGetPresignedUrl();
42 | }
43 | }, [props.imageKey]);
44 |
45 | return (
46 |