Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041import {View} from 'react-native'
import { atoms as a, type TextStyleProp, useTheme, type ViewStyleProp,} from '#/alf'import {type Props} from '#/components/icons/common'import {type Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
export function IconCircle({ icon: Icon, size = 'xl', style, iconStyle,}: ViewStyleProp & { icon: typeof Growth size?: Props['size'] iconStyle?: TextStyleProp['style']}) { const t = useTheme()
return ( <View style={[ a.justify_center, a.align_center, a.rounded_full, { width: size === 'lg' ? 52 : 64, height: size === 'lg' ? 52 : 64, backgroundColor: t.palette.primary_50, }, style, ]}> <Icon size={size} style={[{color: t.palette.primary_500}, iconStyle]} /> </View> )}