mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-13 08:01:50 +02:00
Profile page (#190)
This commit is contained in:
parent
d7043891fa
commit
3384c937c0
18 changed files with 441 additions and 38 deletions
20
src/components/empty-state.tsx
Normal file
20
src/components/empty-state.tsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
import * as React from "react";
|
||||
|
||||
export interface EmptyStateProps {
|
||||
icon: React.ComponentType<{ className?: string }>;
|
||||
text: React.ReactNode;
|
||||
}
|
||||
|
||||
export const EmptyState: React.VoidFunctionComponent<EmptyStateProps> = ({
|
||||
icon: Icon,
|
||||
text,
|
||||
}) => {
|
||||
return (
|
||||
<div className="flex h-full items-center justify-center py-12">
|
||||
<div className="text-center font-medium text-slate-500/50">
|
||||
<Icon className="mb-2 inline-block h-12 w-12" />
|
||||
<div>{text}</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue