fix: Adjust Appearance of drawer

This commit is contained in:
Takeshi Kimata
2024-06-08 20:31:43 +09:00
parent 121fa7de55
commit 67d4c19686
8 changed files with 192 additions and 76 deletions

View File

@@ -0,0 +1,20 @@
import { User } from 'lucide-react';
import Avatar from 'boring-avatars';
import { TokenContextType } from '@/types/user';
type Props = {
context: TokenContextType;
};
export default function PublicityChip({ context }: Props) {
return context.isSignedIn() ? (
<Avatar
size={16}
name={context.token.user.username}
variant="beam"
colors={['#0A0310', '#49007E', '#FF005B', '#FF7D10', '#FFB238']}
/>
) : (
<User size={16} />
);
}