import React from "react";
import ListItemBase from "./ListItemBase";

const AssetItem: React.FC<AssetItemProps> = ({ asset, isActive, remove, onClick, onRename }) => (
  <ListItemBase
    id={asset.id}
    name={asset.name}
    isActive={isActive}
    remove={remove}
    onClick={() => onClick(asset)}
    onRename={onRename}
  />
);

export default AssetItem;
