import classNames from "classnames"; import React from "react"; /* -------------------------------------------------------------------------- */ /* Components */ /* -------------------------------------------------------------------------- */ import Typography from "./typography/Typography"; import Heading from "./typography/Heading"; import Link from "./typography/Link"; /* -------------------------------------------------------------------------- */ /* Props */ /* -------------------------------------------------------------------------- */ type Props = { /** * Card component accept children */ children: React.ReactNode; /** * Styling the card component */ className?: string | undefined; }; const Card = ({ children, className }: Props) => { return (
{children}
); }; // Avatar function type AvatarProps = { children?: React.ReactNode; }; Card.Avatar = function CardAvatar({ children }: AvatarProps) { return
{children}
; }; // Title function Card.Title = function CardTitle({ children, className }: Props) { return ( {children} ); }; // SubTitle function Card.SubTitle = function CardSubTitle({ children, className }: Props) { return ( {children} ); }; // Body function Card.Body = function CardTitle({ children, className }: Props) { return ( {children} ); }; // Cardheader function Card.CardHeader = function CardCardHeader({ children, className }: Props) { return (
{children}
); }; // Cardcontent function Card.CardContent = function CardCardContent({ children, className }: Props) { return (
{children}
); }; // Cardaction function type CardActionProps = { children: React.ReactNode; className?: string | undefined; href?: string; }; Card.CardAction = function CardCardAction({ children, className, href = "#", }: CardActionProps) { return ( {children} ); }; // CardMedia function type CardMediaProps = { children?: React.ReactNode; className?: string | undefined; src?: string; }; Card.CardMedia = function CardCardMedia({ className, src = "#", }: CardMediaProps) { return ( ); }; export default Card;