mirror of
https://github.com/temetro/temetro.git
synced 2026-07-26 11:58:14 +00:00
97bf9ed8cc
- Linear-inspired dark theme (app/globals.css), forced dark in layout
- Clinical sidebar (components/sidebar-02) with temetro brand
- AI chat UI (components/chat): Cursor-style input, UI-only mock replies
- Settings page (components/settings): Polar-style tabs/sections, UI only
- Route-group app shell: app/(app)/{layout,page,settings}
- shadcn (Base UI) + ai-elements component libraries
- CLAUDE.md: architecture notes + per-folder commit policy
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
68 lines
1.5 KiB
TypeScript
68 lines
1.5 KiB
TypeScript
"use client";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import { Separator } from "@/components/ui/separator";
|
|
import {
|
|
Tooltip,
|
|
TooltipContent,
|
|
TooltipTrigger,
|
|
} from "@/components/ui/tooltip";
|
|
import { cn } from "@/lib/utils";
|
|
import type { LucideProps } from "lucide-react";
|
|
import { BookmarkIcon } from "lucide-react";
|
|
import type { ComponentProps, HTMLAttributes } from "react";
|
|
|
|
export type CheckpointProps = HTMLAttributes<HTMLDivElement>;
|
|
|
|
export const Checkpoint = ({
|
|
className,
|
|
children,
|
|
...props
|
|
}: CheckpointProps) => (
|
|
<div
|
|
className={cn(
|
|
"flex items-center gap-0.5 overflow-hidden text-muted-foreground",
|
|
className
|
|
)}
|
|
{...props}
|
|
>
|
|
{children}
|
|
<Separator />
|
|
</div>
|
|
);
|
|
|
|
export type CheckpointIconProps = LucideProps;
|
|
|
|
export const CheckpointIcon = ({
|
|
className,
|
|
children,
|
|
...props
|
|
}: CheckpointIconProps) =>
|
|
children ?? (
|
|
<BookmarkIcon className={cn("size-4 shrink-0", className)} {...props} />
|
|
);
|
|
|
|
export type CheckpointTriggerProps = ComponentProps<typeof Button> & {
|
|
tooltip?: string;
|
|
};
|
|
|
|
export const CheckpointTrigger = ({
|
|
children,
|
|
variant = "ghost",
|
|
size = "sm",
|
|
tooltip,
|
|
...props
|
|
}: CheckpointTriggerProps) =>
|
|
tooltip ? (
|
|
<Tooltip>
|
|
<TooltipTrigger render={<Button size={size} type="button" variant={variant} {...props} />}>{children}</TooltipTrigger>
|
|
<TooltipContent align="start" side="bottom">
|
|
{tooltip}
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
) : (
|
|
<Button size={size} type="button" variant={variant} {...props}>
|
|
{children}
|
|
</Button>
|
|
);
|