-
Notifications
You must be signed in to change notification settings - Fork 248
Expand file tree
/
Copy pathBanner.tsx
More file actions
31 lines (24 loc) · 876 Bytes
/
Banner.tsx
File metadata and controls
31 lines (24 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
const PLAID_ENV = process.env.REACT_APP_PLAID_ENV;
interface Props {
initialSubheading?: boolean;
}
const Banner = (props: Props) => {
const initialText =
'This is an example app that outlines an end-to-end integration with Plaid.';
const successText =
"This page shows a user's net worth, spending by category, and allows them to explore account and transactions details for linked items.";
const subheadingText = props.initialSubheading ? initialText : successText;
return (
<div id="banner" className="bottom-border-content">
<h4>{PLAID_ENV} user</h4>
<div className="header">
<h1 className="everpresent-content__heading">Plaid Pattern</h1>
</div>
<p id="intro" className="everpresent-content__subheading">
{subheadingText}
</p>
</div>
);
};
export default Banner;