Reordered components directory

This commit is contained in:
2023-06-10 19:41:30 +02:00
parent c66d035a1c
commit b4b49351f8
8 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,20 @@
import { View, Text } from "react-native";
import tw from "twrnc";
interface CardProps {
label?: string;
children: React.ReactNode;
}
export default function Card({ label, children }: CardProps) {
return (
<>
{label && <Text style={tw.style("ml-6 mt-2")}>{label}</Text>}
<View
style={tw.style("bg-white m-2 p-1 rounded-lg border border-slate-200")}
>
{children}
</View>
</>
);
}