mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at sonner 31 lines 860 B view raw
1import {View} from 'react-native' 2 3import {atoms as a, useTheme} from '#/alf' 4import {Play_Filled_Corner0_Rounded as PlayIcon} from '#/components/icons/Play' 5 6export function PlayButtonIcon({size = 32}: {size?: number}) { 7 const t = useTheme() 8 const bg = t.name === 'light' ? t.palette.contrast_25 : t.palette.contrast_975 9 const fg = t.name === 'light' ? t.palette.contrast_975 : t.palette.contrast_25 10 11 return ( 12 <> 13 <View 14 style={[ 15 a.rounded_full, 16 { 17 backgroundColor: bg, 18 shadowColor: 'black', 19 shadowRadius: 32, 20 shadowOpacity: 0.5, 21 elevation: 24, 22 width: size + size / 1.5, 23 height: size + size / 1.5, 24 opacity: 0.7, 25 }, 26 ]} 27 /> 28 <PlayIcon width={size} fill={fg} style={a.absolute} /> 29 </> 30 ) 31}