/* global React */
const marketingPreviewSite = window.RentLensSite;
function OutputPreview() {
const { isMobile, isTablet } = marketingPreviewSite.useViewport();
return (
What you get
A verdict, not a spreadsheet.
2418 Linden Ave · Austin, TX 78704
Strong deal · Low risk
Ways to improve this deal
AI deal analysis
"This property generates positive cashflow but financing costs are eating about 38% of NOI. Refinancing or negotiating $12k off purchase would push ROI past 13%."
);
}
function FullMetric({ label, value, sub, tone }) {
const { isMobile } = marketingPreviewSite.useViewport();
const color = tone === 'good' ? 'var(--good)' : tone === 'bad' ? 'var(--bad)' : 'var(--ink)';
return (
);
}
function BigChart() {
const { isMobile } = marketingPreviewSite.useViewport();
const cashflow = [40, 56, 70, 88, 104, 122];
const equity = [20, 38, 58, 80, 104, 132];
const width = isMobile ? 420 : 560;
const height = isMobile ? 180 : 200;
const pad = 16;
const max = 140;
const stepX = (width - pad * 2) / (cashflow.length - 1);
const toPath = (series) => series.map((point, index) => `${index === 0 ? 'M' : 'L'} ${pad + index * stepX} ${height - pad - (point / max) * (height - pad * 2)}`).join(' ');
return (
5-year projection
Cashflow
Equity
{[0.25, 0.5, 0.75].map((guide, index) => (
))}
{['Y0', 'Y1', 'Y2', 'Y3', 'Y4', 'Y5'].map((year) => {year} )}
);
}
function RecoCard({ icon, title, impact, cta, href }) {
return (
);
}
window.OutputPreview = OutputPreview;
window.FullMetric = FullMetric;
window.BigChart = BigChart;
window.RecoCard = RecoCard;