actual/packages/desktop-client/src/components/tutorial/BudgetSummary.js
Tom French dc53a74459
Separate external, monorepo and internal imports (#237)
* style: enforce ordering of imports

* style: sort imports in loot-core

* style: sort imports in desktop-client

* style: sort imports in loot-design

* style: manual fixes
2022-09-02 12:43:37 +01:00

57 lines
1.5 KiB
JavaScript

import React from 'react';
import { Tooltip, Pointer, P } from 'loot-design/src/components/common';
import { colors } from 'loot-design/src/style';
import Navigation from './Navigation';
import { Title } from './common';
function BudgetSummary({ fromYNAB, targetRect, navigationProps }) {
return (
<Tooltip
targetRect={targetRect}
position="bottom-center"
width={450}
style={{
border: 'none',
backgroundColor: 'transparent',
color: colors.n1,
boxShadow: 'none',
marginTop: 5,
fontSize: 14
}}
>
<Pointer
backgroundColor="white"
pointerPosition="center"
innerStyle={{ padding: 20 }}
>
<Title>Budget Overview</Title>
<P>
Actual uses a system where{' '}
<strong>you can only budget money that you currently have</strong>.
</P>
<P isLast={!fromYNAB}>
This is a summary of what money you have to budget and how Actual
calculated it. It's your current income (including anything leftover
from last month) minus any overspending from last month and any
already budgeted amount.
</P>
{fromYNAB && (
<P isLast={true}>
Since you're coming from YNAB 4, an important distinction is that
money is always immediately available.
</P>
)}
<Navigation {...navigationProps} showBack={false} />
</Pointer>
</Tooltip>
);
}
export default BudgetSummary;