update profile page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { cn } from '@/utils/cn';
|
||||
import type { LucideIcon } from 'lucide-react';
|
||||
|
||||
export interface WidgetHeadProps {
|
||||
children: React.ReactNode;
|
||||
@@ -17,6 +18,34 @@ export function WidgetHead({ children, className }: WidgetHeadProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export interface WidgetTitleProps {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
icon?: LucideIcon;
|
||||
}
|
||||
export function WidgetTitle({
|
||||
children,
|
||||
className,
|
||||
icon: Icon,
|
||||
}: WidgetTitleProps) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'relative flex items-center gap-4',
|
||||
className,
|
||||
!!Icon && 'pl-12'
|
||||
)}
|
||||
>
|
||||
{Icon && (
|
||||
<div className="absolute left-0 rounded-lg bg-slate-100 p-2">
|
||||
<Icon size={18} />
|
||||
</div>
|
||||
)}
|
||||
<div className="title">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export interface WidgetBodyProps {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
|
||||
Reference in New Issue
Block a user