import React, { memo } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { toPersian } from '../utils';
import type { TDay } from './types';
import { DEFAULT_PROPS } from '../props';
const Day = memo(
({
item,
onDateChange,
isSelected,
disabled,
dayStyle,
selectedDayStyle,
selectedDayColor,
dayTextStyle,
selectedDayTextColor,
dayTextColor,
disabledTextColor,
}: TDay) => {
const blank = item === '.';
if (blank) {
return ;
}
return (
{toPersian(item)}
);
},
);
export default Day;