import type { ComponentProps } from "react";
import { FloatingActionButton } from "./ui/FloatingActionButton.android";
import { ScrollComposeButton } from "./ScrollComposeButton.android";
import type { NewThreadButton as SharedNewThreadButton } from "./NewThreadButton.shared";
export function NewThreadButton(props: ComponentProps<typeof SharedNewThreadButton>) {
if (props.extended && props.expanded !== undefined) {
return <ScrollComposeButton {...props} expanded={props.expanded} />;
}
return (
<FloatingActionButton
{...props}
icon="square.and.pencil"
label="New thread"
tone="primary"
variant={props.extended ? "extended" : "large"}
/>
);
}