* Eslint updates * linter fixes * Type fixes * More type fixes * Fix isvis * More type fixes * Type Fixes * Consolidate logic to manage options * Linter fixes * Package lock update * Update configs * Version checker * Debug pipeline * Package lock update * Update ci * Strict check * Revert ci * Eslint * Remove rule since it causes issues in CI * Actual matugen fix
34 lines
725 B
TypeScript
34 lines
725 B
TypeScript
import { Gtk } from 'astal/gtk3';
|
|
import {
|
|
BluetoothButton,
|
|
MicrophoneButton,
|
|
NotificationsButton,
|
|
PlaybackButton,
|
|
WifiButton,
|
|
} from './ControlButtons';
|
|
|
|
export const Controls = ({ isEnabled }: ControlsProps): JSX.Element => {
|
|
if (!isEnabled) {
|
|
return <box />;
|
|
}
|
|
|
|
return (
|
|
<box
|
|
className={'dashboard-card controls-container'}
|
|
halign={Gtk.Align.FILL}
|
|
valign={Gtk.Align.FILL}
|
|
expand
|
|
>
|
|
<WifiButton />
|
|
<BluetoothButton />
|
|
<NotificationsButton />
|
|
<PlaybackButton />
|
|
<MicrophoneButton />
|
|
</box>
|
|
);
|
|
};
|
|
|
|
interface ControlsProps {
|
|
isEnabled: boolean;
|
|
}
|