import Link from 'next/link'; import { Button, Icons, Text, Icon } from 'react-basics'; import Page from 'components/layout/Page'; import PageHeader from 'components/layout/PageHeader'; import Funnel from 'assets/funnel.svg'; import Lightbulb from 'assets/lightbulb.svg'; import styles from './ReportTemplates.module.css'; import { useMessages } from 'hooks'; function ReportItem({ title, description, url, icon }) { return (
{icon} {title}
{description}
); } export function ReportTemplates() { const { formatMessage, labels } = useMessages(); const reports = [ { title: formatMessage(labels.insights), description: 'Dive deeper into your data by using segments and filters.', url: '/reports/insights', icon: , }, { title: formatMessage(labels.funnel), description: 'Understand the conversion and drop-off rate of users.', url: '/reports/funnel', icon: , }, ]; return (
{reports.map(({ title, description, url, icon }) => { return ( ); })}
); } export default ReportTemplates;