web/src/components/Popup/Description/Appeal.tsx
import React from "react";
import styled from "styled-components";
import { responsiveSize } from "styles/responsiveSize";
const Container = styled.div`
display: flex;
flex-direction: column;
`;
const StyledAmountFunded = styled.div`
display: flex;
margin-left: ${responsiveSize(8, 44, 300)};
margin-right: ${responsiveSize(8, 44, 300)};
color: ${({ theme }) => theme.secondaryText};
text-align: center;
`;
const StyledOptionFunded = styled.div`
display: flex;
margin-bottom: ${responsiveSize(16, 32, 300)};
margin-left: ${responsiveSize(8, 44, 300)};
margin-right: ${responsiveSize(8, 44, 300)};
color: ${({ theme }) => theme.secondaryText};
text-align: center;
`;
const AmountContainer = styled.div`
color: ${({ theme }) => theme.primaryText};
`;
const OptionContainer = styled.div`
color: ${({ theme }) => theme.primaryText};
`;
interface IAppeal {
amount: string;
option: string;
}
const Appeal: React.FC<IAppeal> = ({ amount, option }) => {
return (
<Container>
<StyledAmountFunded>
You have funded: <AmountContainer>{amount} ETH</AmountContainer>
</StyledAmountFunded>
<StyledOptionFunded>
Option funded: <OptionContainer>{option}</OptionContainer>
</StyledOptionFunded>
</Container>
);
};
export default Appeal;