Open History to see the last commit
1import type { ReactNode } from "react";
2
3export function AndroidHomeFabLayout(props: {
4 readonly onStartNewTask: () => void;
5 readonly children: ReactNode;
6 readonly sidebar?: boolean;
7 readonly disabled?: boolean;
8 readonly paneWidth?: number;
9}) {
10 return <>{props.children}</>;
11}
12
13/**
14 * The filter button stacks on the New thread FAB from this same origin so the two
15 * cannot drift apart. In dp rather than a rem class so Material's 16dp margin does
16 * not grow with the app's text size.
17 */
18export function androidHomeFabPosition(safeAreaBottom: number, sidebar: boolean | undefined) {
19 return {
20 right: 16,
21 bottom: sidebar ? Math.max(safeAreaBottom, 12) + 6 : safeAreaBottom + 16,
22 };
23}