File size: 568 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import InternalCard from './Card';
import Grid from './Grid';
import Meta from './Meta';

export type { CardProps, CardTabListType } from './Card';
export type { CardGridProps } from './Grid';
export type { CardMetaProps } from './Meta';

type InternalCardType = typeof InternalCard;

export interface CardInterface extends InternalCardType {
  Grid: typeof Grid;
  Meta: typeof Meta;
}

const Card = InternalCard as CardInterface;

Card.Grid = Grid;
Card.Meta = Meta;

if (process.env.NODE_ENV !== 'production') {
  Card.displayName = 'Card';
}

export default Card;