mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 02:15:49 +02:00
48 lines
918 B
TypeScript
48 lines
918 B
TypeScript
import { styles } from "@/styles/components/colorPicker";
|
|
import { View, Text } from "react-native";
|
|
import type React from "react";
|
|
import Skeleton from "./Skeleton";
|
|
|
|
interface CustomColorPickerProps {
|
|
description?: string;
|
|
title?: string;
|
|
}
|
|
|
|
export default function SkeletonColorPicker({
|
|
description,
|
|
title,
|
|
}: CustomColorPickerProps) {
|
|
return (
|
|
<>
|
|
{title && (
|
|
<>
|
|
<Text
|
|
style={{
|
|
...styles.inputHeader,
|
|
...(!description && {
|
|
marginBottom: 5,
|
|
}),
|
|
...styles.inputHeaderDisabled,
|
|
}}
|
|
>
|
|
{title}
|
|
</Text>
|
|
|
|
{description && (
|
|
<Text style={styles.inputDescription}>{description}</Text>
|
|
)}
|
|
</>
|
|
)}
|
|
<View style={styles.input}>
|
|
<Skeleton height={17} width={60} />
|
|
<View
|
|
style={{
|
|
...styles.inputPreview,
|
|
borderColor: "#ccc",
|
|
backgroundColor: "#ffffff",
|
|
}}
|
|
/>
|
|
</View>
|
|
</>
|
|
);
|
|
}
|