mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-16 03:37:53 +01:00
11 lines
318 B
TypeScript
11 lines
318 B
TypeScript
import { atom, useAtom } from "jotai";
|
|
|
|
export const rowyRunModalAtom = atom({ open: false, feature: "", version: "" });
|
|
|
|
export const useRowyRunModal = () => {
|
|
const [, setOpen] = useAtom(rowyRunModalAtom);
|
|
|
|
return (feature: string = "", version: string = "") =>
|
|
setOpen({ open: true, feature, version });
|
|
};
|