31 lines
638 B
TypeScript
31 lines
638 B
TypeScript
import React from 'react'
|
|
|
|
/**
|
|
* 하단 주석 영역
|
|
*/
|
|
|
|
type CommentType={
|
|
commentStartPoint? : string,
|
|
commentArray? : string[],
|
|
divHeight? : string,
|
|
}
|
|
|
|
function UnderComment({commentStartPoint="☞", commentArray=[], divHeight="14"} :CommentType) {
|
|
|
|
if(commentArray && commentArray.length > 0){
|
|
return (
|
|
<div className={"mt-"+divHeight}>
|
|
{commentArray.map((item, index) => (
|
|
<React.Fragment key={"comment" + index}>
|
|
<span className="text-2xl font-bold text-gray-500">
|
|
{commentStartPoint} {item}
|
|
</span>
|
|
<br/>
|
|
</React.Fragment>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
export default UnderComment; |