preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
35
frontend/src/components/Controls.tsx
Normal file
35
frontend/src/components/Controls.tsx
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
interface VoiceStatusProps {
|
||||
text: string;
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
export function VoiceStatus({ text, visible }: VoiceStatusProps) {
|
||||
return (
|
||||
<div id="voiceStatus" class={visible ? "visible" : ""}>
|
||||
{text}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface ControlBarProps {
|
||||
onReset(): void;
|
||||
}
|
||||
|
||||
export function ControlBar({ onReset }: ControlBarProps) {
|
||||
return (
|
||||
<div id="controls">
|
||||
<button
|
||||
id="resetSessionBtn"
|
||||
class="control-btn"
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
onReset();
|
||||
}}
|
||||
>
|
||||
Reset
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue