сверстан контейнер после нажатия на кнопку Начать демонстрацию
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import React from "react";
|
||||
import { PinkButton } from "./button";
|
||||
|
||||
type TProps = {
|
||||
textButton: string
|
||||
onClickButton: () => void
|
||||
titleText?: string
|
||||
descriptText: string
|
||||
}
|
||||
|
||||
export const ContentContainer:React.FC<TProps> = React.memo((props) => {
|
||||
return <div className="main-part-text-container">
|
||||
{
|
||||
props.titleText &&
|
||||
<span className="main-part-text-title">
|
||||
{props.titleText}
|
||||
</span>
|
||||
}
|
||||
<span className="main-part-text-descript">
|
||||
{props.descriptText}
|
||||
</span>
|
||||
<PinkButton
|
||||
onClick={props.onClickButton}
|
||||
textButton={props.textButton}
|
||||
/>
|
||||
</div>
|
||||
})
|
||||
Reference in New Issue
Block a user