✨ Completely rework the about page

This commit is contained in:
ajnart committed 2023-11-01 02:53:39 +01:00
1 parent 6f12863863
commit 58e57492e2
12 files changed
+513 -812

No files matched your search

+10
View File
@@ -1,5 +1,15 @@
import bcrypt from 'bcryptjs';
import { ReactNode } from 'react';
export const hashPassword = (password: string, salt: string) => {
return bcrypt.hashSync(password, salt);
};
interface ConditionalWrapperProps {
condition: boolean;
wrapper: (children: ReactNode) => JSX.Element;
children: ReactNode;
}
export const ConditionalWrapper: React.FC<ConditionalWrapperProps> = ({ condition, wrapper, children }) =>
condition ? wrapper(children) : children;