mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 10:50:38 +09:00
15 lines
355 B
TypeScript
15 lines
355 B
TypeScript
|
|
import {
|
||
|
|
readRecentSelectionIds,
|
||
|
|
trackRecentSelectionId,
|
||
|
|
} from "./recent-selections";
|
||
|
|
|
||
|
|
const STORAGE_KEY = "paperclip:recent-projects";
|
||
|
|
|
||
|
|
export function getRecentProjectIds(): string[] {
|
||
|
|
return readRecentSelectionIds(STORAGE_KEY);
|
||
|
|
}
|
||
|
|
|
||
|
|
export function trackRecentProject(projectId: string): void {
|
||
|
|
trackRecentSelectionId(STORAGE_KEY, projectId);
|
||
|
|
}
|