16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import { TextBoxProps } from '@/components/cardStack/types';
|
|
|
|
const CardStackTextBox: React.FC<TextBoxProps> = ({ title, description, className = '' }) => {
|
|
return (
|
|
<div className={`card-stack-textbox ${className}`}>
|
|
<h2>{title}</h2>
|
|
<p>{description}</p>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default CardStackTextBox;
|