diff options
Diffstat (limited to 'src/components/video/PlayButtonIcon.tsx')
-rw-r--r-- | src/components/video/PlayButtonIcon.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/video/PlayButtonIcon.tsx b/src/components/video/PlayButtonIcon.tsx new file mode 100644 index 000000000..5415084ff --- /dev/null +++ b/src/components/video/PlayButtonIcon.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import {View} from 'react-native' + +import {atoms as a, useTheme} from '#/alf' +import {Play_Filled_Corner2_Rounded as PlayIcon} from '#/components/icons/Play' + +export function PlayButtonIcon({size = 44}: {size?: number}) { + const t = useTheme() + + return ( + <View + style={[ + a.rounded_full, + a.align_center, + a.justify_center, + { + backgroundColor: t.palette.primary_500, + width: size + 16, + height: size + 16, + }, + ]}> + <PlayIcon height={size} width={size} style={{color: 'white'}} /> + </View> + ) +} |