UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

20 lines (18 loc) 391 B
import { atom } from "../../chunks/chunk-OBOPLPUQ.js"; import "../../chunks/chunk-U5RRZUYZ.js"; // src/dashboard/atoms/ErrorAtoms.ts var errorMessageAtom = atom(null); var errorAtom = atom( (get) => get(errorMessageAtom), (get, set, message, cause) => { set(errorMessageAtom, message); if (cause) console.error(cause); } ); export { errorAtom, errorMessageAtom };