({
value,
status,
contextValue,
}: {
value: string;
status?: 'checked' | 'unchecked';
contextValue?: string;
})
| 21 | }; |
| 22 | |
| 23 | export const isChecked = ({ |
| 24 | value, |
| 25 | status, |
| 26 | contextValue, |
| 27 | }: { |
| 28 | value: string; |
| 29 | status?: 'checked' | 'unchecked'; |
| 30 | contextValue?: string; |
| 31 | }) => { |
| 32 | if (contextValue !== undefined && contextValue !== null) { |
| 33 | return contextValue === value ? 'checked' : 'unchecked'; |
| 34 | } else { |
| 35 | return status; |
| 36 | } |
| 37 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…