mirror of
https://github.com/movie-web/extension.git
synced 2025-09-13 18:13:25 +00:00
Functionality and state for popout
This commit is contained in:
9
src/components/Frame.tsx
Normal file
9
src/components/Frame.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export interface FrameProps {
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
export function Frame(props: FrameProps) {
|
||||
return <div style={{ width: 300, height: 300 }}>{props.children}</div>;
|
||||
}
|
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