mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
18 lines
386 B
TypeScript
18 lines
386 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
interface IProps {
|
|
title: string;
|
|
children?: ReactNode;
|
|
}
|
|
|
|
const Feature = ({ title, children }: IProps) => (
|
|
<div className="mb-auto">
|
|
<h5 className="text-(--neutral-content) text-2xl font-bold">{title}</h5>
|
|
<p className="text-(--neutral-content) font-medium" data-testid="text">
|
|
{children}
|
|
</p>
|
|
</div>
|
|
);
|
|
|
|
export default Feature;
|