import type { PropsWithChildren } from 'react';

import { cls } from '../../utils/cls';

interface CardProps extends PropsWithChildren {
  className?: string;
}

export const Card = ({ className = '', children }: CardProps) => (
  <div className={cls('rounded-2xl border bg-white shadow-sm', className)}>{children}</div>
);

export const CardHeader = ({ children }: PropsWithChildren) => (
  <div className='px-5 p-4 font-medium flex items-center justify-between'>{children}</div>
);

export const CardContent = ({ children }: PropsWithChildren) => (
  <div className='px-5 p-3'>{children}</div>
);


