import { memo, forwardRef, ReactNode } from 'react'; import { type StyleProp, type ViewStyle, type ViewProps, View } from 'react-native'; import { StyleSheet } from 'react-native-unistyles'; import { registerComponentStyles, getRegisteredMoleculesComponentStyles } from '../../core'; export type Props = ViewProps & { style?: StyleProp; children: ReactNode; }; const CardMedia = memo( forwardRef(({ style, children, ...rest }: Props, ref: any) => { return ( {children} ); }), ); const cardMediaStylesDefault = StyleSheet.create(theme => ({ root: { height: 195, borderRadius: theme.shapes.corner.medium, overflow: 'hidden', marginBottom: theme.spacings['4'], }, })); registerComponentStyles('Card_Media', cardMediaStylesDefault); export const cardMediaStyles = getRegisteredMoleculesComponentStyles('Card_Media'); CardMedia.displayName = 'Card_Media'; export default CardMedia;