survey-webapp/SurveyFrontend/src/components/AddQuestionButton/AddQuestionButton.tsx
2025-04-05 19:31:48 +05:00

17 lines
No EOL
564 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;