14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
|
import { identity, mutate, mutateAndReturn } from "shared-runtime";
|
||
|
function Component(props) {
|
||
|
const key = {};
|
||
|
const context = {
|
||
|
[key |> mutateAndReturn(%)]: [props.value] |> identity(%)
|
||
|
};
|
||
|
return context;
|
||
|
}
|
||
|
export const FIXTURE_ENTRYPOINT = {
|
||
|
fn: Component,
|
||
|
params: [{
|
||
|
value: 42
|
||
|
}]
|
||
|
};
|