eletrotupi / tcc/ frontend/app/(tabs)/insights.tsx7d2b76a987098caa7e4b365e4d41c0bd0a7a2692
1.4 KB | 40 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
      userAvatar={user.avatarURL}
19
      onNotificationPress={() => console.log('Notifications')}
20
      showNotificationBadge={true}>
21
      <ThemedView>
22
        <Section>
23
          <SectionHeader
24
            title="Tendências da Semana"
25
            info="Últimos 7 dias"
26
          />
27
          <Card variant="default" style={{ height: 200 }} />
28
        </Section>
29

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