mirror of
https://github.com/outline/outline.git
synced 2026-11-30 00:50:41 +03:00
15 lines
255 B
TypeScript
15 lines
255 B
TypeScript
import { getCookie } from "tiny-cookie";
|
|
|
|
export type Sessions = Record<
|
|
string,
|
|
{
|
|
name: string;
|
|
logoUrl: string;
|
|
url: string;
|
|
}
|
|
>;
|
|
|
|
export function useLoggedInSessions(): Sessions {
|
|
return JSON.parse(getCookie("sessions") || "{}");
|
|
}
|