eletrotupi / tcc/ frontend/app/(tabs)/insights.tsx387edc22f68222f65e93340108152b50c1f90694
1.4 KB | 39 lines Raw
1
import { ThemedText } from '@/components/misc/themed-text';
2
import { ThemedView } from '@/components/misc/themed-view';
3
import { ScreenLayout } from '@/components/ui/ScreenLayout';
4
import { useAuth } from '@/context/AuthContext';
5
import { Card, CardHeader } from '@/components/ui/Cards'
6
import { Section, SectionHeader } from '@/components/ui/Sections'
7
import { useThemeColor } from '@/hooks/use-theme-color'
8
import { Spacing, BorderRadius } from '@/constants/theme'
9
import { Grid } from '@/components/ui/LayoutHelpers'
10

11
export default function Insights() {
12
  const { user } = useAuth();
13
  const backgroundColor = useThemeColor({}, 'background')
14
  const accentPurple = useThemeColor({}, 'accentPurple')
15

16
  return (
17
    <ScreenLayout userName={user.firstName}
18
      onNotificationPress={() => console.log('Notifications')}
19
      showNotificationBadge={true}>
20
      <ThemedView>
21
        <Section>
22
          <SectionHeader
23
            title="Tendências da Semana"
24
            info="Últimos 7 dias"
25
          />
26
          <Card variant="default" style={{ height: 200 }} />
27
        </Section>
28

29
        <Section>
30
          <SectionHeader title="Insights de Saúde" />
31
          <Grid gap={8}>
32
            <Card style={{ height: 150, backgroundColor: accentPurple }} />
33
            <Card style={{ height: 150, backgroundColor: 'powderblue' }} />
34
          </Grid>
35
        </Section>
36
      </ThemedView>
37
    </ScreenLayout>
38
  )
39
}