aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/TitledColumn.tsx
blob: a26271b94ec6c4d599b0be0631aba20bfd5b4308 (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>
	);
}