17 lines
No EOL
564 B
TypeScript
17 lines
No EOL
564 B
TypeScript
import React from "react";
|
||
import styles from './AddQuestionButton.module.css'
|
||
|
||
interface AddQuestionButtonProps {
|
||
onClick: () => void;
|
||
}
|
||
|
||
const AddQuestionButton: React.FC<AddQuestionButtonProps> = ({onClick}) => {
|
||
return (
|
||
<button className={styles.questionButton} onClick={onClick}>
|
||
<img src='../../../public/add_question.svg' className={styles.questionButtonImg} alt='add question' />
|
||
<span className={styles.textButton}>Добавить вопрос</span>
|
||
</button>
|
||
);
|
||
};
|
||
|
||
export default AddQuestionButton; |