Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/object-literal-method-call-in-ternary-test.js
2026-08-27 21:09:14 +00:00

22 lines
351 B
JavaScript

import {
createHookWrapper,
identity,
CONST_STRING0,
CONST_STRING1,
} from 'shared-runtime';
function useHook({value}) {
return {
getValue() {
return identity(value);
},
}.getValue()
? CONST_STRING0
: CONST_STRING1;
}
export const FIXTURE_ENTRYPOINT = {
fn: createHookWrapper(useHook),
params: [{value: 0}],
};