import {StyleSheet} from 'react-native';
import {BORDER_RADIUS, SPACING} from '@shared/theme';

import {LIST_ITEM_HEIGHT} from '../../constants';

export const styles = StyleSheet.create({
  container: {
    alignItems: 'center',
    borderLeftWidth: 1,
    borderRightWidth: 1,
    flexDirection: 'row',
    gap: SPACING.x1,
    height: LIST_ITEM_HEIGHT,
    justifyContent: 'space-between',
    marginHorizontal: SPACING.x2,
    paddingHorizontal: SPACING.x2,
    paddingVertical: SPACING['x1.25'],
  },
  firstItem: {
    borderTopLeftRadius: BORDER_RADIUS.l,
    borderTopRightRadius: BORDER_RADIUS.l,
    borderTopWidth: 1,
  },
  lastItem: {
    borderBottomLeftRadius: BORDER_RADIUS.l,
    borderBottomRightRadius: BORDER_RADIUS.l,
    borderBottomWidth: 1,
  },
  avatarWithName: {
    alignItems: 'center',
    flexDirection: 'row',
    flexShrink: 1,
    gap: SPACING.x1,
  },
  name: {flexShrink: 1},
  dateTimeContainer: {flexDirection: 'row'},
});
