import useLocalization from "~/utils/useLocalization";
import { Grid, Typography } from "@mui/joy";

export default function About() {
  const { currentLocale } = useLocalization();
  return (
    <Grid
      sx={{ flexGrow: 1 }}
      container
      spacing={0}
      justifyContent='center'
      alignItems='center'
      mt={8}
    >
      <Grid xs={10} md={8} lg={6} justifyContent='center' alignItems='center'>
        {currentLocale === "pt" ? (
          <>
            <Typography level='h4' mt={3}>
              Qual o objetivo do simulador?
            </Typography>
            <Typography level='body1' mt={1}>
              Possibilitar a simulação de diferentes estratégias de investimento
              e composição de carteiras.
            </Typography>

            <Typography level='h4' mt={3}>
              Quais são os ativos disponíveis?
            </Typography>
            <Typography level='body1' mt={1}>
              Por enquanto apenas ativos listados na bolsa brasileira: Ações,
              FIIs e BDRs. O plano é adicionar stocks (ações americanas),
              criptomoedas e produtos de renda fixa brasileiros em breve.
            </Typography>

            <Typography level='h4' mt={3}>
              Consigo salvar as carteiras que criei?
            </Typography>
            <Typography level='body1' mt={1}>
              Em breve você podera salvar suas carteiras! A ferramenta ainda
              esta em fase inicial de desenvolvimento. Com esta adição a
              ferramenta também podera ser utilizada para acompanhar a
              rentabilidade dos investimentos.
            </Typography>
            <Typography level='h4' mt={3}>
              A rentabilidade da carteira ou ativo esta diferente do meu cáculo
              ou outro aplicativo.
            </Typography>
            <Typography level='body1' mt={1}>
              O calculo de rentabilidade pode variar consideravelmente de acordo
              com a metodologia utilizada. Os dados de preços utilizados são de
              fontes notadamente confiáveis, mas não há garantia de precisão
              total. Atualmente a ferramenta usa preço de fechamento do ativo no
              dia para os cálculos. Com a inclusão futura da funcionalidade de
              salvar carteiras também será adicionada a função de especificar o
              preço pago pelo ativo. Para fins de simulação, o preço de
              fechamento é suficiente.
            </Typography>
            <Typography level='h4' mt={3}>
              A ferramenta não encontrou dados de preço para um ativo que
              selecionei.
            </Typography>
            <Typography level='body1' mt={1}>
              Isso pode ser causado por alguma instabilidade momentânea na API
              da fonte de preços. Tente novamente mais tarde.
            </Typography>
            <Typography level='h4' mt={3}>
              Encontrei um bug ou discrepância significativa na rentabilidade.
            </Typography>
            <Typography level='body1' mt={1}>
              Por favor, me envie um email em mail@renatocervati.com com o
              máximo de informações sobre o problema. Como a ferramenta ainda
              esta em desenvolvimento, bugs e erros diversos podem ocorrer.
            </Typography>
            <Typography level='h4' mt={3}>
              Bugs? Sugestões? Criticas? Ideias? Por favor, me envie um email.
              Toda informação é bem-vinda!
            </Typography>
            <Typography level='body1' mt={1}>
              mail@renatocervati.com
            </Typography>
          </>
        ) : (
          <>
            <Typography level='h4' mt={3}>
              What is the purpose of the simulator?
            </Typography>
            <Typography level='body1' mt={1}>
              To enable simulation of different investment strategies and
              portfolio compositions.
            </Typography>

            <Typography level='h4' mt={3}>
              What assets are available?
            </Typography>
            <Typography level='body1' mt={1}>
              Currently, only assets listed on the Brazilian stock exchange:
              Stocks, REITs, and BDRs. The plan is to add US stocks,
              cryptocurrencies, and Brazilian fixed income products soon.
            </Typography>

            <Typography level='h4' mt={3}>
              Can I save the portfolios I create?
            </Typography>
            <Typography level='body1' mt={1}>
              Soon you will be able to save your portfolios! The tool is still
              in the initial development phase. With this addition, the tool can
              also be used to track investment profitability.
            </Typography>
            <Typography level='h4' mt={3}>
              The profitability of the portfolio or asset is different from my
              calculation or another application.
            </Typography>
            <Typography level='body1' mt={1}>
              Profitability calculations can vary considerably depending on the
              methodology used. The price data used comes from notably reliable
              sources, but there is no guarantee of total accuracy. Currently,
              the tool uses the closing price of the asset on the day for the
              calculations. With the future inclusion of the functionality to
              save portfolios, the function of specifying the price paid for the
              asset will also be added. For simulation purposes, the closing
              price is sufficient.
            </Typography>
            <Typography level='h4' mt={3}>
              The tool did not find price data for an asset I selected.
            </Typography>
            <Typography level='body1' mt={1}>
              This may be caused by a momentary instability in the price source
              API. Please try again later.
            </Typography>
            <Typography level='h4' mt={3}>
              I found a bug or significant discrepancy in profitability.
            </Typography>
            <Typography level='body1' mt={1}>
              Please send me an email at mail@renatocervati.com with as much
              information as possible about the problem. As the tool is still in
              development, various bugs and errors can occur.
            </Typography>
            <Typography level='h4' mt={3}>
              Bugs? Suggestions? Criticisms? Ideas? Please send me an email. All
              information is welcome!
            </Typography>
            <Typography level='body1' mt={1}>
              mail@renatocervati.com
            </Typography>
          </>
        )}
      </Grid>
    </Grid>
  );
}
