Add risk forms

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-22 12:40:12 +02:00
committed by Sacha Al Himdani
parent 3d4ecf5f8f
commit fc45d2f00d
41 changed files with 2426 additions and 136 deletions

View File

@@ -0,0 +1,9 @@
export function sprintf(str: string, ...params: unknown[]): string {
let i = 0;
return str.replace(/%(\d+)?s/g, (_, ...args) => {
if (args[0]) {
return params[parseInt(args[0]) - 1] as string;
}
return params[i++] as string;
});
}