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

const DELETE_BUTTON_SIZE = 20;

export const styles = StyleSheet.create({
  container: {
    alignItems: 'center',
    alignSelf: 'flex-start',
    backgroundColor: COLORS.LIGHT_GRAY_TWO,
    borderRadius: BORDER_RADIUS.m,
    flexDirection: 'row',
    overflow: 'hidden',
    paddingLeft: SPACING.x1,
    paddingRight: SPACING.x2 + DELETE_BUTTON_SIZE,
    paddingVertical: SPACING['x0.5'],
  },
  deletePressable: {
    paddingHorizontal: SPACING.x1,
    paddingVertical: (SPACING.x5 - DELETE_BUTTON_SIZE) / 2,
    position: 'absolute',
    right: 0,
    top: 0,
  },
  delete: {
    alignItems: 'center',
    backgroundColor: COLORS.DARK_GRAY_SEVEN,
    borderRadius: DELETE_BUTTON_SIZE / 2,
    flexDirection: 'row',
    height: DELETE_BUTTON_SIZE,
    justifyContent: 'center',
    width: DELETE_BUTTON_SIZE,
  },
});
