chore: ui improvements + add github button

This commit is contained in:
Zakher Masri
2025-03-11 16:03:44 +03:00
parent 197f4e20f7
commit 42302fd53d
10 changed files with 277 additions and 86 deletions

29
app/src/store/index.ts Normal file
View File

@@ -0,0 +1,29 @@
import { create } from 'zustand'
interface Template {
id: string;
name: string;
description: string;
version: string;
logo?: string;
links: {
github?: string;
website?: string;
docs?: string;
};
tags: string[];
}
interface Store {
templates: Template[];
setTemplates: (templates: Template[]) => void;
githubStars: number;
setGithubStars: (count: number) => void;
}
export const useStore = create<Store>((set) => ({
templates: [],
setTemplates: (templates) => set({ templates }),
githubStars: 0,
setGithubStars: (count) => set({ githubStars: count }),
}))