You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
497 B
20 lines
497 B
import React from 'react';
|
|
|
|
import { useAppSelector } from '@app/hooks/redux';
|
|
import { Button } from '@components/generic/Button';
|
|
import { SwitchVerticalIcon } from '@heroicons/react/outline';
|
|
|
|
export const DeviceStatusDropdown = (): JSX.Element => {
|
|
const ready = useAppSelector((state) => state.meshtastic.ready);
|
|
|
|
return (
|
|
<Button
|
|
icon={
|
|
<SwitchVerticalIcon
|
|
className={`h-6 w-6 ${!ready ? 'animate-pulse' : ''}`}
|
|
/>
|
|
}
|
|
circle
|
|
/>
|
|
);
|
|
};
|
|
|