/**
 * title: "带标题卡片"
 * description: "标题可通过title属性定制"
 */
import React from 'react';
import { Card, Icon } from '@alicloud/console-components';

const cardContent: React.CSSProperties = {
  background: '#f6f6f6',
  width: '100%',
  height: '100%',
  borderRadius: '4px',
  textAlign: 'center',
  lineHeight: '100%',
  color: '#aaaaaa',
  position: 'relative',
};

const contentext: React.CSSProperties = {
  lineHeight: '20px',
  position: 'absolute',
  top: '50%',
  width: '100%',
  marginTop: '-10px',
};

const CardContent = () => (
  <div style={cardContent}>
    <div style={contentext}>Card Content</div>
  </div>
);

const commonProps = {
  extra: <Icon type="more" size="small" />,
  showHeadDivider: false,
  title: '标题Title',
  style: { width: 500 },
};

export default () => {
  return (
    <Card {...commonProps}>
      <CardContent />
    </Card>
  );
};


