({
theme,
isOutlined,
}: Omit<BaseProps, 'disabled' | 'selectedColor'>)
| 93 | }; |
| 94 | |
| 95 | const getDefaultBackgroundColor = ({ |
| 96 | theme, |
| 97 | isOutlined, |
| 98 | }: Omit<BaseProps, 'disabled' | 'selectedColor'>) => { |
| 99 | if (theme.isV3) { |
| 100 | if (isOutlined) { |
| 101 | return theme.colors.surface; |
| 102 | } |
| 103 | |
| 104 | return theme.colors.secondaryContainer; |
| 105 | } |
| 106 | |
| 107 | if (isOutlined) { |
| 108 | return theme.colors?.surface; |
| 109 | } |
| 110 | |
| 111 | if (theme.dark) { |
| 112 | return '#383838'; |
| 113 | } |
| 114 | |
| 115 | return '#ebebeb'; |
| 116 | }; |
| 117 | |
| 118 | const getBackgroundColor = ({ |
| 119 | theme, |
no outgoing calls
no test coverage detected
searching dependent graphs…