1321
This commit is contained in:
@@ -81,3 +81,11 @@ export const getStatics = async (): Promise<StaticsData> => {
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
export const saveDraft = (content: string): void => {
|
||||
localStorage.setItem('draft', content);
|
||||
};
|
||||
|
||||
export const getDraft = (): string | null => {
|
||||
return localStorage.getItem('draft');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user