mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 10:23:24 +00:00
Functionality and state for popout
This commit is contained in:
12
src/components/ToggleButton.tsx
Normal file
12
src/components/ToggleButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user