mirror of
https://github.com/outline/outline.git
synced 2026-06-20 06:45:01 +03:00
522df125aa
* chore: CSP * chore: Optionally use CDN for serving images
13 lines
250 B
JavaScript
13 lines
250 B
JavaScript
// @flow
|
|
import * as React from "react";
|
|
import { cdnPath } from "utils/urls";
|
|
|
|
type Props = {
|
|
alt: string,
|
|
src: string,
|
|
};
|
|
|
|
export default function Image({ src, alt, ...rest }: Props) {
|
|
return <img src={cdnPath(src)} alt={alt} {...rest} />;
|
|
}
|