import { ReactNode } from 'react';
import { useMediaQuery } from 'react-responsive';
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle
} from '../../components/ui/card';
import Footer from './footer';
type CustomCardProps = {
title: string;
description?: string;
content: ReactNode;
style?: string;
footer?: boolean;
};
export const CustomCard = ({
title,
description,
content,
style,
footer = true
}: CustomCardProps) => {
const isMobile = useMediaQuery({ query: '(max-width: 767px)' });
if (isMobile) {
console.log(isMobile);
return (
{title}
{description}
{content}
{footer && (
)}
);
}
return (
{title}
{description}
{content}
{footer && (
)}
);
};