import { useTheme } from "../../theme"; import React from "react"; import { View, StyleSheet, ViewStyle, DimensionValue } from "react-native"; interface SkeletonElementProps { width?: DimensionValue height?: DimensionValue; borderRadius?: number; style?: ViewStyle; children?: React.ReactNode; } const SkeletonElement: React.FC = ({ width, height, borderRadius, style, children, }) => { const { theme } = useTheme(); const styles = StyleSheet.create({ skeleton: { backgroundColor: theme.skeletonItemColor, width: width, height: height, borderRadius: borderRadius, }, }); return {children}; }; export default SkeletonElement;