From 4d0e3dee9f43e734a9f00fcdbdac5ec569cd960f Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:56 +0530 Subject: [PATCH] feat: add icon message --- app/components/ui/icon-message.tsx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/components/ui/icon-message.tsx diff --git a/app/components/ui/icon-message.tsx b/app/components/ui/icon-message.tsx new file mode 100644 index 0000000..722eee2 --- /dev/null +++ b/app/components/ui/icon-message.tsx @@ -0,0 +1,26 @@ +import type { ReactNode } from 'react'; +import type { LucideIcon } from 'lucide-react'; +import { IconTile } from '~/components/ui/icon-tile'; +import { Text } from '~/components/ui/text'; + +export interface IconMessageProps { + icon?: LucideIcon; + title: string; + message?: string; + action?: ReactNode; + size?: 'md' | 'lg'; +} + +export function IconMessage({ icon, title, message, action, size = 'md' }: IconMessageProps) { + const large = size === 'lg'; + return ( +
+ {icon && } + + {title} + + {message && {message}} + {action &&
{action}
} +
+ ); +}