| 1234567891011121314151617181920212223242526272829 |
- import type { ReactNode } from 'react'
- import { Card } from 'ui'
- export const ActionCard = (card: {
- icon: ReactNode
- title: string
- description: string
- bgColor: string
- onClick?: () => void
- }) => {
- return (
- <Card
- className="grow bg-surface-100 p-3 transition-colors hover:bg-surface-200 border hover:border-default cursor-pointer"
- onClick={card.onClick}
- >
- <div className={`relative flex items-start gap-3`}>
- <div
- className={`rounded-full ${card.bgColor} w-8 h-8 flex items-center justify-center shrink-0`}
- >
- {card.icon}
- </div>
- <div className="flex flex-col gap-0">
- <h3 className="text-sm text-foreground mb-0">{card.title}</h3>
- <p className="text-xs text-foreground-light">{card.description}</p>
- </div>
- </div>
- </Card>
- )
- }
|