Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
39 lines
908 B
Plaintext
39 lines
908 B
Plaintext
'use client';
|
|
|
|
import { c as _c } from "react/compiler-runtime";
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import React, { createContext, use, useState } from 'react';
|
|
const ActionsContext = /*#__PURE__*/createContext({
|
|
Actions: {},
|
|
setViewActions: () => {}
|
|
});
|
|
export const useActions = () => use(ActionsContext);
|
|
export const ActionsProvider = t0 => {
|
|
const $ = _c(4);
|
|
const {
|
|
Actions,
|
|
children
|
|
} = t0;
|
|
const [viewActions, setViewActions] = useState(Actions);
|
|
let t1;
|
|
if ($[0] !== Actions || $[1] !== children || $[2] !== viewActions) {
|
|
t1 = _jsx(ActionsContext, {
|
|
value: {
|
|
Actions: {
|
|
...viewActions,
|
|
...Actions
|
|
},
|
|
setViewActions
|
|
},
|
|
children
|
|
});
|
|
$[0] = Actions;
|
|
$[1] = children;
|
|
$[2] = viewActions;
|
|
$[3] = t1;
|
|
} else {
|
|
t1 = $[3];
|
|
}
|
|
return t1;
|
|
};
|
|
//# sourceMappingURL=index.js.map |