import { Text } from '@/components/ui/text';
import { View } from '@/components/ui/view';
import { useColor } from '@/hooks/useColor';
import { BORDER_RADIUS } from '@/theme/globals';
import { memo } from 'react';
import {
TextProps as RNTextProps,
TextStyle,
ViewProps as RNViewProps,
ViewStyle,
} from 'react-native';
interface CardProps extends RNViewProps {
children: React.ReactNode;
style?: ViewStyle;
}
export const Card = memo(function Card({
children,
style,
...props
}: CardProps) {
const cardColor = useColor('card');
const foregroundColor = useColor('foreground');
return (
{children}
);
});
interface CardHeaderProps extends RNViewProps {
children: React.ReactNode;
style?: ViewStyle;
}
export const CardHeader = memo(function CardHeader({
children,
style,
...props
}: CardHeaderProps) {
return (
{children}
);
});
interface CardTitleProps extends RNTextProps {
children: React.ReactNode;
style?: TextStyle;
}
export const CardTitle = memo(function CardTitle({
children,
style,
...props
}: CardTitleProps) {
return (
{children}
);
});
interface CardDescriptionProps extends RNTextProps {
children: React.ReactNode;
style?: TextStyle;
}
export const CardDescription = memo(function CardDescription({
children,
style,
...props
}: CardDescriptionProps) {
return (
{children}
);
});
interface CardContentProps extends RNViewProps {
children: React.ReactNode;
style?: ViewStyle;
}
export const CardContent = memo(function CardContent({
children,
style,
...props
}: CardContentProps) {
return (
{children}
);
});
interface CardFooterProps extends RNViewProps {
children: React.ReactNode;
style?: ViewStyle;
}
export const CardFooter = memo(function CardFooter({
children,
style,
...props
}: CardFooterProps) {
return (
{children}
);
});