You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.1 KiB
21 lines
1.1 KiB
import { withTheme } from '../config';
|
|
import { CardBase } from '@rneui/base/dist/Card/Card';
|
|
import { CardDivider, } from '@rneui/base/dist/Card/Card.Divider';
|
|
import { CardFeaturedSubtitle } from '@rneui/base/dist/Card/Card.FeaturedSubtitle';
|
|
import { CardFeaturedTitle } from '@rneui/base/dist/Card/Card.FeaturedTitle';
|
|
import { CardImage } from '@rneui/base/dist/Card/Card.Image';
|
|
import { CardTitle } from '@rneui/base/dist/Card/Card.Title';
|
|
const ThemedCardDivider = withTheme(CardDivider, 'CardDivider');
|
|
const ThemedCardFeaturedSubtitle = withTheme(CardFeaturedSubtitle, 'CardFeaturedSubtitle');
|
|
const ThemedCardFeaturedTitle = withTheme(CardFeaturedTitle, 'CardFeaturedTitle');
|
|
const ThemedCardTitle = withTheme(CardTitle, 'CardTitle');
|
|
const ThemedCardImage = withTheme(CardImage, 'CardImage');
|
|
const ThemedCard = Object.assign(withTheme(CardBase, 'Card'), {
|
|
Divider: ThemedCardDivider,
|
|
Image: ThemedCardImage,
|
|
Title: ThemedCardTitle,
|
|
FeaturedTitle: ThemedCardFeaturedTitle,
|
|
FeaturedSubtitle: ThemedCardFeaturedSubtitle,
|
|
});
|
|
export default ThemedCard;
|