16
src/components/profile/profile.error.tsx
Normal file
16
src/components/profile/profile.error.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { UserLock } from 'lucide-react';
|
||||
import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from '../ui/empty';
|
||||
|
||||
export function ProfileError({ reason }: { reason: string }) {
|
||||
return (
|
||||
<Empty className="h-full">
|
||||
<EmptyHeader>
|
||||
<EmptyMedia variant="icon">
|
||||
<UserLock />
|
||||
</EmptyMedia>
|
||||
<EmptyTitle>无法查看此个人资料</EmptyTitle>
|
||||
<EmptyDescription>{reason}</EmptyDescription>
|
||||
</EmptyHeader>
|
||||
</Empty>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user