Copy playlist to clipboard, native UI (not alert)
This commit is contained in:
parent
e485844d86
commit
65e4f1b0a6
9 changed files with 135 additions and 24 deletions
|
|
@ -7,6 +7,10 @@ export interface ErrorWithLabel {
|
|||
}
|
||||
|
||||
export const useErrorStore = create<{
|
||||
alert: ErrorWithLabel | null;
|
||||
setAlert: (alert: ErrorWithLabel) => void;
|
||||
removeAlert: () => void;
|
||||
|
||||
closeableError: ErrorWithLabel | null;
|
||||
setCloseableError: (error: ErrorWithLabel | null) => void;
|
||||
|
||||
|
|
@ -18,4 +22,8 @@ export const useErrorStore = create<{
|
|||
|
||||
otherError: null,
|
||||
setOtherError: (otherError) => set(() => ({ otherError })),
|
||||
|
||||
alert: null,
|
||||
setAlert: (alert) => set(() => ({alert})),
|
||||
removeAlert: () => set(() => ({alert: null}))
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue