Functionality and state for popout

This commit is contained in:
mrjvs
2024-01-10 19:27:20 +01:00
parent 3a8144ee67
commit 5a3268fd29
13 changed files with 141 additions and 63 deletions

View File

@@ -0,0 +1,12 @@
export interface ToggleButtonProps {
onClick?: () => void;
active?: boolean;
}
export function ToggleButton(props: ToggleButtonProps) {
return (
<button type="button" onClick={props.onClick}>
{props.active ? 'ON' : 'OFF'}
</button>
);
}