mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-02 20:01:51 +08:00
feat: add finding side question panel
This commit is contained in:
1 parent
a94b67ffd6
commit
404c4bb248
2 files changed
+16
-5
No files matched your search
@@ -37,12 +37,12 @@ const preparationLabels = {
|
||||
answering: "正在回答…",
|
||||
};
|
||||
|
||||
export function SideQuestionButton({ side }: { side: SideQuestions }) {
|
||||
export function SideQuestionButton({ side, label = "旁路提问" }: { side: SideQuestions; label?: string }) {
|
||||
if (!side.enabled) return null;
|
||||
return (
|
||||
<Button variant="outline" size="sm" onClick={() => side.setOpen(true)} title="/btw 旁路提问">
|
||||
<Button variant="outline" size="sm" onClick={() => side.setOpen(true)} title={`/btw ${label}`}>
|
||||
<MessageCircleQuestionIcon data-icon="inline-start" />
|
||||
旁路提问
|
||||
{label}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user