import { RNCamera } from 'react-native-camera';
import styled from 'styled-components/native';
import { getTheme, ifStyle } from '../../utils/helpers';
import Icon from '../Icon';
import Touchable from '../Touchable';
const brandPrimary = getTheme('brand.primary.main');
const brandAccent = getTheme('brand.accent.main');
const showBorder = ifStyle('showBorder');
const hasBorderWidth = ifStyle('borderWidth');
const hasBorderColor = ifStyle('borderColor');
export const Wrapper = styled(Touchable) `
  width: ${(props) => props.size}px;
  height: ${(props) => props.size}px;
  border-radius: ${(props) => props.size / 2}px;
  overflow: hidden;
  border-width: ${(props) => showBorder(hasBorderWidth(props.borderWidth, '2'), '0')}px;
  border-color: ${(props) => hasBorderColor(props.borderColor, brandPrimary)};
  position: relative;
`;
export const UploadIconWrapper = styled.View `
  align-items: center;
  justify-content: center;
  width: ${(props) => props.size / 4}px;
  height: ${(props) => props.size / 4}px;
  border-radius: ${(props) => props.size / 8}px;
  position: absolute;
  z-index: 2;
  background-color: ${brandPrimary};
`;
export const UploadIcon = styled(Icon).attrs({ name: 'camera' }) `
  color: ${brandAccent};
`;
export const CameraView = styled(RNCamera) `
  width: ${(props) => props.size}px;
  height: 100%;
  border-radius: ${(props) => props.size / 2}px;
  overflow: hidden;
  border: ${showBorder('4px solid white', '')};
`;
//# sourceMappingURL=styles.js.map