aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/TitledColumn.tsx
blob: ac43091991574a1b84d3db5d72a281cdc30d243a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import React from "react";

type Props = {
  children: React.ReactNode;
  title: React.ReactNode;
  className?: string;
};

export default function TitledColumn({ children, title, className }: Props) {
  return (
    <div className={`p-4 flex flex-col gap-4 ${className}`}>
      <div className="text-center text-xl font-bold">{title}</div>
      {children}
    </div>
  );
}