diff --git a/src/features/lightbox/chrome/CircleChromeButton.tsx b/src/features/lightbox/chrome/CircleChromeButton.tsx new file mode 100644 index 0000000000..6bdc7e14d5 --- /dev/null +++ b/src/features/lightbox/chrome/CircleChromeButton.tsx @@ -0,0 +1,49 @@ +import {type ComponentType} from 'react' +import {Pressable, type PressableProps, StyleSheet} from 'react-native' + +import {HITSLOP_10} from '#/lib/constants' +import {type Props as IconProps} from '#/components/icons/common' + +type Props = { + icon: ComponentType + label: string + onPress?: PressableProps['onPress'] + testID?: string +} + +const SIZE = 36 +const BG = 'rgba(0, 0, 0, 0.45)' + +export function CircleChromeButton({ + icon: Icon, + label, + onPress, + testID, +}: Props) { + return ( + [styles.root, pressed && styles.pressed]}> + + + ) +} + +const styles = StyleSheet.create({ + root: { + width: SIZE, + height: SIZE, + borderRadius: SIZE / 2, + backgroundColor: BG, + alignItems: 'center', + justifyContent: 'center', + }, + pressed: { + opacity: 0.85, + }, +})