mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00

- Refactor `InstallButton` and relocate it to `install/`. - Update `Toolbar` imports to reflect the new `InstallButton` structure. - Introduce `handleInstall` functionality for PWA installation prompt handling.
30 lines
674 B
TypeScript
30 lines
674 B
TypeScript
import { Flex } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import BuiltWithButton from '../BuiltWithButton';
|
|
import InstallButton from '../install/InstallButton.tsx';
|
|
|
|
import GithubButton from './GithubButton';
|
|
import SupportThisSiteButton from './SupportThisSiteButton';
|
|
|
|
const toolbarButtonZIndex = 901;
|
|
|
|
export { toolbarButtonZIndex };
|
|
|
|
function ToolBar({ isMobile }) {
|
|
return (
|
|
<Flex
|
|
direction={isMobile ? 'row' : 'column'}
|
|
alignItems={isMobile ? 'flex-start' : 'flex-end'}
|
|
pb={4}
|
|
>
|
|
<InstallButton />
|
|
<SupportThisSiteButton />
|
|
<GithubButton />
|
|
<BuiltWithButton />
|
|
</Flex>
|
|
);
|
|
}
|
|
|
|
export default ToolBar;
|