20 lines
426 B
TypeScript

import { View } from 'react-native';
import type { ViewProps } from 'react-native';
type Props = ViewProps & {
children: React.ReactNode;
className?: string;
};
export function Card({ children, className = '', style, ...rest }: Props) {
return (
<View
className={`bg-white border border-neutral-200 rounded-2xl p-4 ${className}`}
style={style}
{...rest}
>
{children}
</View>
);
}