import { ReactElement } from 'react';
import { Card, CardContent, CardMedia, LinearProgress, Stack, Typography } from '@mui/material';

const LoanDetailsCard = (): ReactElement => {
    return(
        <Card
      sx={(theme) => ({
        boxShadow: theme.shadows[4],
        width: 1,
        height: 'auto',
      })}
    >
        <CardContent
                sx={{
                  flex: '1 1 auto',
                  padding: 0,
                  ':last-child': {
                    paddingBottom: 0,
                  },
                }}
              >
                <Stack direction="row" justifyContent="space-between" alignItems="center" flexWrap="wrap">
                    <Typography variant="subtitle1" component="p" minWidth={100} color="text.primary">
                        Loan Details
                    </Typography>
                    
                </Stack>
                <Stack direction="column" justifyContent="space-between" flexWrap="wrap">
                <LinearProgress variant="determinate" value={20} />
                <Typography>
                    Length: 30 year
                </Typography>
                <Typography>
                    Start Date: Dec 2020
                </Typography> 
                <Typography>
                    Intrest Rate: 3%
                </Typography> 
                <Typography>
                    Intrest Rate: 3%
                </Typography> 
                <Typography>
                    PMI: 3%
                </Typography> 
                </Stack>



              </CardContent>

        
    </Card>
    )

}

export default LoanDetailsCard;