15 lines
277 B
TypeScript
15 lines
277 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
type Props = {
|
|
title: string;
|
|
children: ReactNode;
|
|
};
|
|
|
|
export default function ServiceCard({ title, children }: Props) {
|
|
return (
|
|
<article className="card">
|
|
<h3>{title}</h3>
|
|
<p>{children}</p>
|
|
</article>
|
|
);
|
|
}
|