UNPKG

@teamsparta/chat-ui

Version:
23 lines 755 B
import React from "react"; import * as S from "./PresetQuestions.style"; const PresetQuestions = ({ theme, questions }) => { return /*#__PURE__*/React.createElement(S.Container, { theme: theme }, questions.map((item, index) => item.style === "highlight" ? /*#__PURE__*/React.createElement(S.GradationBorderDiv, { theme: theme, key: index, onClick: item.handler }, /*#__PURE__*/React.createElement(S.Span, null, /*#__PURE__*/React.createElement(S.GradationSpan, { theme: theme }, item.title))) : /*#__PURE__*/React.createElement(S.BorderDiv, { theme: theme, key: index, onClick: item.handler }, /*#__PURE__*/React.createElement(S.Span, { theme: theme }, item.title)))); }; export default PresetQuestions;