mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
feat: add artifacts panel toggle action
This commit is contained in:
parent
d568905661
commit
64c3db60bd
1 changed files with 5 additions and 0 deletions
|
|
@ -29,3 +29,8 @@ export const closeArtifactsPanelAtom = atom(null, (get, set) => {
|
||||||
set(preArtifactsCollapsedAtom, null);
|
set(preArtifactsCollapsedAtom, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const toggleArtifactsPanelAtom = atom(null, (get, set) => {
|
||||||
|
if (get(artifactsPanelOpenAtom)) set(closeArtifactsPanelAtom);
|
||||||
|
else set(openArtifactsPanelAtom);
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue