17 lines
357 B
TypeScript
17 lines
357 B
TypeScript
import "./index.css";
|
||
interface Props {
|
||
name: string;
|
||
value: string;
|
||
}
|
||
function Rectangle2(props: Props) {
|
||
return (
|
||
<div className="rectangle2">
|
||
<div>
|
||
<span className="rectangle2_title">{props.name}:</span>
|
||
<span className="rectangle2_content">{props.value}</span>
|
||
</div>
|
||
</div>
|
||
);
|
||
}
|
||
export default Rectangle2;
|