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}) {
9 return <>{props.children}</>;
10}
11
12/**
13 * The filter button stacks on the New thread FAB from this same origin so the two
14 * cannot drift apart. In dp rather than a rem class so Material's 16dp margin does
15 * not grow with the app's text size.
16 */
17export function androidHomeFabPosition(safeAreaBottom: number, sidebar: boolean | undefined) {
18 return {
19 right: 16,
20 bottom: sidebar ? Math.max(safeAreaBottom, 12) + 6 : safeAreaBottom + 16,
21 };
22}