import type { ReactNode } from "react";
import Divider from "@moduletrace/twui/layout/Divider";
import Row from "@moduletrace/twui/layout/Row";
import Span from "@moduletrace/twui/layout/Span";
type Props = {
title: string;
/**
* A small control on the right, e.g. the "+" beside Workspaces.
*/
action?: ReactNode;
};
/**
* Heads a section of the rail. When the rail collapses to icons it's a
* hairline instead.
*/
export default function RailSectionLabel({ title, action }: Props) {
return (
<>
{title}
{action}
>
);
}