Files
natreex c9cf99e166 Update imports and Electron compatibility
- Removed unnecessary React imports.
- Adjusted package.json scripts for Electron integration.
- Updated components to replace Next.js-specific imports with Electron-compatible alternatives.
- Minor tsconfig.json changes for better compatibility.
2025-11-16 11:55:52 -05:00

14 lines
683 B
TypeScript

import {useContext} from "react";
import {SessionContext} from "@/context/SessionContext";
export default function NoPicture() {
const {session} = useContext(SessionContext);
return (
<div
className="bg-primary text-text-primary rounded-full w-8 h-8 border-2 border-primary-dark hover:bg-primary-dark flex items-center justify-center text-sm font-semibold transition-all duration-200 hover:scale-110 shadow-md hover:shadow-lg">
<span>{session.user?.name && session.user.name.charAt(0).toUpperCase()}</span>
<span>{session.user?.lastName && session.user.lastName.charAt(0).toUpperCase()}</span>
</div>
)
}