@@ -399,6 +411,105 @@ const SetupTwoFactorDialog = ({
);
};
+const ChangeAvatarForm = ({
+ open,
+ setOpen,
+}: {
+ open: boolean;
+ setOpen: (value: boolean) => void;
+}) => {
+ const {
+ getRootProps,
+ getInputProps,
+ getFiles,
+ upload,
+ state,
+ removeFile,
+ cancelAll,
+ } = useUppy({
+ uploader: "tus",
+ endpoint: import.meta.env.VITE_PUBLIC_TUS_ENDPOINT,
+ });
+
+ console.log({ state, files: getFiles() });
+
+ const isUploading = state === "uploading";
+ const isCompleted = state === "completed";
+ const hasStarted = state !== "idle" && state !== "initializing";
+
+ return (
+
+ );
+};
+
const PasswordDots = ({ className }: { className?: string }) => {
return (