about summary refs log tree commit diff
path: root/src/view/screens/Search.tsx
blob: b1c78f681c88cda311142d8e7e13a65f40ff4a37 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, {useEffect} from 'react'
import {StyleSheet, Text, View} from 'react-native'
import {ViewHeader} from '../com/util/ViewHeader'
import {SuggestedFollows} from '../com/discover/SuggestedFollows'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
import {colors} from '../lib/styles'

export const Search = ({visible, params}: ScreenParams) => {
  const store = useStores()
  const {name} = params

  useEffect(() => {
    if (visible) {
      store.nav.setTitle(`Search`)
    }
  }, [store, visible, name])

  return (
    <View style={styles.container}>
      <ViewHeader title="Search" />
      <View style={styles.todoContainer}>
        <Text style={styles.todoLabel}>
          Search is still being implemented. Check back soon!
        </Text>
      </View>
      <Text style={styles.heading}>Suggested follows</Text>
      <SuggestedFollows asLinks />
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: colors.white,
  },

  todoContainer: {
    backgroundColor: colors.pink1,
    margin: 10,
    padding: 10,
    borderRadius: 6,
  },
  todoLabel: {
    color: colors.pink5,
    textAlign: 'center',
  },

  heading: {
    fontSize: 16,
    fontWeight: 'bold',
    paddingTop: 12,
    paddingBottom: 6,
    paddingHorizontal: 12,
  },
})