You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
587 B
29 lines
587 B
import { useState } from '#app';
|
|
|
|
export const useToken = () => {
|
|
return useState('token', () => '');
|
|
};
|
|
|
|
export const useUserId = () => {
|
|
return useState('userId', () => '');
|
|
};
|
|
|
|
export const useProjectId = () => {
|
|
return useState('projectId', () => '');
|
|
};
|
|
|
|
export const useUser = () => {
|
|
return useState('user', () => null);
|
|
};
|
|
|
|
export const useTaskId = () => {
|
|
return useState('taskId', () => null);
|
|
};
|
|
|
|
export const useProjectName = () => {
|
|
return useState('projectName', () => null);
|
|
};
|
|
|
|
export const useTaskName = () => {
|
|
return useState('taskName', () => null);
|
|
};
|
|
|