import { IconProps } from '@tamagui/helpers-icon' import { SizableText, ThemeName, XStack, YGroup, YStack, YStackProps, styled } from 'tamagui' export type SettingItemProps = YStackProps & { icon: React.FC rightLabel?: string accentTheme?: ThemeName isActive?: boolean } export const SettingItem = ({ icon: Icon, children, rightLabel, isActive, accentTheme, ...props }: SettingItemProps) => { return ( {children} {!!rightLabel && ( {rightLabel} )} ) } const SettingItemFrame = styled(XStack, { bg: '$color1', ai: 'center', jc: 'center', p: '$3', cur: 'pointer', gap: '$3', br: '$10', variants: { isActive: { true: { bg: '$backgroundFocus', }, false: { hoverStyle: { bg: '$backgroundHover', }, pressStyle: { bg: '$backgroundPress', }, }, }, } as const, })