Add risks

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Jonathan
2025-05-20 18:49:47 +02:00
committed by Sacha Al Himdani
parent a2d1310780
commit a86181c83d
41 changed files with 4533 additions and 1304 deletions

View File

@@ -0,0 +1,21 @@
{
"name": "@probo/hooks",
"version": "1.0.0",
"description": "",
"main": "./src/index.ts",
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"format": "prettier --write ./src"
},
"prettier": "@probo/prettier",
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@probo/prettier": "1.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"vitest": "^3.1.3"
}
}

View File

@@ -0,0 +1 @@
export { usePageTitle } from "./usePageTitle";

View File

@@ -0,0 +1,10 @@
import { useEffect } from "react";
export function usePageTitle(title: string) {
useEffect(() => {
document.title = title + " - Probo";
return () => {
document.title = "Probo";
};
}, [title]);
}

View File

@@ -0,0 +1,5 @@
{
"compilerOptions": {
"lib": ["ES2021", "dom"]
}
}