import { memo, useMemo } from "react"; import type { ViewStyle } from "react-native"; import { View, StyleSheet } from "react-native"; const styles = StyleSheet.create({ container: { padding: 6, flex: 1, }, }); export interface CalendarItemEmptyProps { /** The height of the cell. Should be the same as `CalendarItemDay`. */ height: number; /** The theme of the empty cell, useful for customizing the component. */ theme?: { container?: ViewStyle; }; } export const CalendarItemEmpty = memo(function CalendarItemEmpty( props: CalendarItemEmptyProps ) { const { height, theme } = props; const containerStyles = useMemo(() => { return [{ ...styles.container, height }, theme?.container]; }, [height, theme?.container]); return ; });