import { Box, Card, Typography } from '@mui/material' import type { SxProps, Theme } from '@mui/material' import type { ReactNode } from 'react' interface CompactCardProps { title: string meta?: string leading?: ReactNode trailing?: ReactNode onClick?: () => void selected?: boolean sx?: SxProps } export function CompactCard({ title, meta, leading, trailing, onClick, selected = false, sx }: CompactCardProps) { return ( {leading && {leading}} {title} {meta && ( {meta} )} {trailing && {trailing}} ) }