Completely rework the about page

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

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;