import _extends from"babel-runtime/helpers/extends";var __rest=this&&this.__rest||function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&(a[r[s]]=e[r[s]])}return a};import*as React from"react";import classNames from"classnames";export default function(e){var t=e.prefixCls,a=void 0===t?"dt-card":t,r=e.className,s=e.avatar,l=e.title,c=e.description,n=__rest(e,["prefixCls","className","avatar","title","description"]),i=classNames(a+"-meta",r),m=s?React.createElement("div",{className:a+"-meta-avatar"},s):null,o=l?React.createElement("div",{className:a+"-meta-title"},l):null,d=c?React.createElement("div",{className:a+"-meta-description"},c):null,p=o||d?React.createElement("div",{className:a+"-meta-detail"},o,d):null;return React.createElement("div",_extends({},n,{className:i}),m,p)};