import { Box, Card, CardActions, CardContent, Divider, Typography } from '@mui/material' import type { SxProps, Theme } from '@mui/material' import type { ReactNode } from 'react' import { CardSkeleton } from '../ui/CardSkeleton' import { RestrictedState } from '../ui/RestrictedState' interface DecisionCardProps { title: string subtitle?: string badges?: ReactNode score?: ReactNode body?: ReactNode actions?: ReactNode selected?: boolean isLoading?: boolean isRestricted?: boolean onClick?: () => void sx?: SxProps } export function DecisionCard({ title, subtitle, badges, score, body, actions, selected = false, isLoading = false, isRestricted = false, onClick, sx, }: DecisionCardProps) { if (isLoading) return return ( {isRestricted ? ( ) : ( <> {title} {subtitle && ( {subtitle} )} {score && {score}} {badges && ( {badges} )} {body && ( <> {body} )} {actions && ( <> {actions} )} )} ) }