kopia lustrzana https://github.com/OpenDroneMap/WebODM
13 wiersze
328 B
JavaScript
13 wiersze
328 B
JavaScript
import React, { PureComponent, Fragment } from "react";
|
|
import { AssetStyles } from "../defaults";
|
|
|
|
const IonAssetLabel = ({ asset, showIcon = false, ...options }) => (
|
|
<Fragment>
|
|
{showIcon && <i className={`${AssetStyles[asset].icon}`} />}
|
|
{" "}
|
|
{AssetStyles[asset].name}
|
|
</Fragment>
|
|
);
|
|
|
|
export default IonAssetLabel;
|