mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
29 lines
735 B
TypeScript
29 lines
735 B
TypeScript
import { writable, readable } from 'svelte/store';
|
|
import type { SvelteComponent } from 'svelte';
|
|
|
|
export type Tab = {
|
|
href: string;
|
|
title: string;
|
|
};
|
|
|
|
export type Breadcrumb = {
|
|
href: string;
|
|
title: string;
|
|
};
|
|
|
|
export type updateLayoutArguments = {
|
|
header?: typeof SvelteComponent;
|
|
breadcrumb?: typeof SvelteComponent;
|
|
};
|
|
|
|
export const header = writable<typeof SvelteComponent>();
|
|
export const breadcrumb = writable<typeof SvelteComponent>();
|
|
|
|
export function updateLayout(args: updateLayoutArguments) {
|
|
header.set(args.header ?? null);
|
|
breadcrumb.set(args.breadcrumb ?? null);
|
|
}
|
|
|
|
export const pageLimit = readable(12); // default page limit
|
|
export const cardLimit = readable(6); // default card limit
|