style.js 1.19 KB
Newer Older
Muhammadali's avatar
Muhammadali committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/** @format */

import styled from 'styled-components';

const Block = styled.div`
	width: 200px;
	padding: 8px;
	background-color: #c9d5d9;
	position: absolute;
	bottom: 50px;
	border-radius: 10px;
	left: 50%;
	transition: 0.3s;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 8px;
	transform: translate(-50%, 0);
	${({ visiblevalue }) =>
		visiblevalue
			? {
					opacity: '1',
					transform: 'translate(-50%, 0)',
Muhammadali's avatar
Muhammadali committed
23
					display: 'block',
Muhammadali's avatar
Muhammadali committed
24 25 26 27
			  }
			: {
					opacity: '0',
					transform: 'translate(-50%, 0)',
Muhammadali's avatar
Muhammadali committed
28
					display: 'none',
Muhammadali's avatar
Muhammadali committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
			  }}
`;
Block.ShowNumbersArea = styled.div`
	grid-column: 1/4;
	height: 33px;
	color: #000;
	font-size: 22px;
	text-align: center;
	letter-spacing: 5px;
	font-weight: bold;
`;
const NumberButton = styled.div`
	color: #fff;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 7px;
	font-size: 22px;
	cursor: pointer;
	height: 33px;
	background-color: ${({ status = '', type = '' }) =>
		type === 'call_button'
			? status === 'pending'
				? 'orange'
				: status === 'connected' && '#a0c13d'
			: '#5e5e5e'};
`;
NumberButton.Icon = styled.div`
	font-size: 20px;
`;

export { NumberButton };

export default Block;