import * as React from 'react'; import * as PropTypes from 'prop-types'; import { LocalPaneProps, PaneProps, panePropTypes, paneDefaultProps } from '../Pane/Pane'; import Card from './styled'; export type LocalCardCardProps = LocalPaneProps & { a11yDescriptionId?: string; a11yTitleId?: string; children: React.ReactNode; className?: string; }; export type CardCardProps = LocalCardCardProps & PaneProps; export const CardCard: React.FunctionComponent = ({ a11yDescriptionId, a11yTitleId, children, ...props }) => ( {children} ); export const cardCardPropTypes = { a11yDescriptionId: PropTypes.string, a11yTitleId: PropTypes.string, children: PropTypes.node.isRequired, className: PropTypes.string, ...panePropTypes }; CardCard.propTypes = cardCardPropTypes; export const cardCardDefaultProps = { ...paneDefaultProps, a11yDescriptionId: undefined, a11yTitleId: undefined, border: 'shadow' as 'shadow', children: undefined, className: undefined }; CardCard.defaultProps = cardCardDefaultProps; const C: React.FunctionComponent = CardCard; export default C;