import React from "react"; import { useBreakpoint } from "use-breakpoint"; import "../styles/Card.css"; export type CardVariants = | "outlined" | "full" | "fullFlush" | "elevated" | "searchResult"; export const Card = ({ variant = "elevated", className, ...props }: { variant?: CardVariants; } & React.HTMLProps): React.ReactElement => { return (
); }; // IMPORTANT: Keep this on the outside const BREAKPOINTS = { full: 0, elevated: 768 }; export const ResponsiveCard = ( props: React.ComponentProps, ): React.ReactElement => { const { breakpoint: responsiveVariant } = useBreakpoint( BREAKPOINTS, "elevated", ); return ; }; export default Card;