( props: SingleValueProps<Option, IsMulti, Group> )
| 50 | }); |
| 51 | |
| 52 | const SingleValue = < |
| 53 | Option, |
| 54 | IsMulti extends boolean, |
| 55 | Group extends GroupBase<Option> |
| 56 | >( |
| 57 | props: SingleValueProps<Option, IsMulti, Group> |
| 58 | ) => { |
| 59 | const { children, isDisabled, innerProps } = props; |
| 60 | return ( |
| 61 | <div |
| 62 | {...getStyleProps(props, 'singleValue', { |
| 63 | 'single-value': true, |
| 64 | 'single-value--is-disabled': isDisabled, |
| 65 | })} |
| 66 | {...innerProps} |
| 67 | > |
| 68 | {children} |
| 69 | </div> |
| 70 | ); |
| 71 | }; |
| 72 | |
| 73 | export default SingleValue; |
nothing calls this directly
no test coverage detected
searching dependent graphs…