2023-01-20 15:46:44 +01:00
|
|
|
import { Audio, Format, Image, Reaction } from '@status-im/icons/20'
|
2023-01-20 14:06:26 +00:00
|
|
|
import { Stack, XStack, YStack } from 'tamagui'
|
|
|
|
|
|
|
|
import { IconButton } from '../icon-button'
|
|
|
|
import { Input } from '../input'
|
|
|
|
|
|
|
|
import type { GetProps } from '@tamagui/core'
|
|
|
|
|
|
|
|
type BaseProps = GetProps<typeof YStack>
|
|
|
|
|
|
|
|
const Composer = (props: BaseProps) => {
|
|
|
|
return (
|
|
|
|
<YStack
|
|
|
|
backgroundColor="$background"
|
|
|
|
shadowColor="rgba(9, 16, 28, 0.08)"
|
|
|
|
shadowOffset={{ width: 0, height: -4 }}
|
|
|
|
shadowRadius={20}
|
|
|
|
borderTopLeftRadius={20}
|
|
|
|
borderTopRightRadius={20}
|
|
|
|
elevation={0}
|
|
|
|
px={16}
|
|
|
|
pt={8}
|
|
|
|
pb={12}
|
|
|
|
width="100%"
|
|
|
|
{...props}
|
|
|
|
>
|
|
|
|
<YStack>
|
|
|
|
<Input
|
|
|
|
elevation={10}
|
|
|
|
placeholder="Type something..."
|
|
|
|
borderWidth={0}
|
|
|
|
px={0}
|
|
|
|
/>
|
|
|
|
</YStack>
|
|
|
|
<XStack alignItems="center" justifyContent="space-between" pt={8}>
|
|
|
|
<Stack space={12} flexDirection="row">
|
2023-01-20 15:46:44 +01:00
|
|
|
<IconButton noBackground icon={<Image />} />
|
|
|
|
<IconButton noBackground icon={<Reaction />} />
|
|
|
|
<IconButton noBackground icon={<Format />} />
|
2023-01-20 14:06:26 +00:00
|
|
|
</Stack>
|
2023-01-20 15:46:44 +01:00
|
|
|
<IconButton noBackground icon={<Audio />} />
|
2023-01-20 14:06:26 +00:00
|
|
|
</XStack>
|
|
|
|
</YStack>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export { Composer }
|