/** * ProRank Card Components * * Lightweight card primitives used across the admin UI. */ import * as React from 'react'; type DivProps = React.HTMLAttributes; export interface ProrankCardProps extends DivProps { title?: React.ReactNode; description?: React.ReactNode; actions?: React.ReactNode; } export const ProrankCardHeader: React.FC = ({ className = '', children, ...props }) => (
{children}
); export const ProrankCardBody: React.FC = ({ className = '', children, ...props }) => (
{children}
); export const ProrankCard: React.FC = ({ title, description, actions, className = '', children, ...props }) => { const hasHeader = Boolean(title || description || actions); return (
{hasHeader ? (
{title ?

{title}

: null} {description ?

{description}

: null}
{actions ?
{actions}
: null}
) : null} {children}
); }; export default ProrankCard;