File size: 534 Bytes
1067b6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { HeadingAndSubheading } from "./heading-and-subheading";

export const InfoCard = (props: {
  heading: string;
  subheading: string;
  icon: React.ReactNode;
  button?: React.ReactNode;
}) => {
  return (
    <div className="flex items-center justify-center bg-gray-50 rounded-md border border-border flex-col p-6 gap-4 py-24">
      {props.icon}
      <HeadingAndSubheading
        heading={props.heading}
        subheading={props.subheading}
        className="text-center"
      />
      {props.button}
    </div>
  );
};