add link to admin painel on user menu

This commit is contained in:
João Geonizeli
2022-07-28 08:26:27 -03:00
parent 89f39f93e9
commit aa11f8aa6a
2 changed files with 16 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
// Use a type predicate function to avoid opting out of strict type checking: https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates
export const notEmpty = <T>(value: T | null | undefined): value is T =>
value !== null && value !== undefined