empty.tsx
This file
Path
apps/web/src/features/shared/empty.tsx
21 lines · 617 bytes · TypeScript
Last changed by
Merge redesign into mainoscabrielbefore adoptioncaedd21
History of this fileTake it
12345678910111213141516171819202122import type { ReactNode } from "react";
import { CommandLine } from "./command.tsx";
export const EmptyState = ({ command, onward, title,}: { readonly command?: string; readonly onward?: ReactNode; readonly title: string;}) => ( <div className="border-rule flex flex-col items-start gap-3 border border-dashed px-4 py-5"> <p className="text-ui text-foreground max-w-(--measure)">{title}</p> {command === undefined ? null : <CommandLine command={command} />} {onward === undefined ? null : ( <div className="text-ui flex flex-wrap gap-x-4 gap-y-1">{onward}</div> )} </div>);