Initial commit

This commit is contained in:
Alois 2026-03-10 20:44:25 +01:00
commit 2f5e10140c
133 changed files with 10429 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{
"name": "@tensamin/notifications",
"private": true,
"version": "0.0.0",
"type": "module",
"exports": {
"./context": "./src/context.tsx"
},
"scripts": {
"format": "bunx prettier --write .",
"lint": "eslint src",
"build": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@tensamin/ttp": "git+https://github.com/Tensamin/TTP.git",
"@solidjs/router": "^0.15.4",
"lucide-solid": "^0.564.0",
"solid-js": "^1.9.11",
"solid-sonner": "^0.2.8",
"zod": "^4.3.6"
}
}

View file

@ -0,0 +1,26 @@
import { createContext, useContext } from "solid-js";
import type { ParentProps } from "solid-js";
export const context = createContext<contextType>();
export default function Provider(props: ParentProps) {
// live_messages
return (
<context.Provider value={{ test: () => {} }}>
{props.children}
</context.Provider>
);
}
type contextType = {
test: () => void;
};
export function useNotifications(): contextType {
const ctx = useContext(context);
if (!ctx) {
throw new Error("useNotifications must be used within a ChatProvider");
}
return ctx;
}

View file

@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "bundler",
"jsx": "preserve",
"jsxImportSource": "solid-js",
"strict": true,
"skipLibCheck": true,
"noEmit": true
},
"include": ["src"]
}