import type { ReactNode } from "react";
import { Text } from "@/components/ui/text";
import { AUTO_POPULATED_FIELDS } from "@/domain/completion-templates/constants/completion-template-constants";
import { SAFETY_BULLETS } from "@/domain/work-orders/utils/completion-doc-procedures";
export function SectionTitle({ children }: { children: ReactNode }) {
return (
{children}
);
}
export function FieldLabel({ children, hint }: { children: ReactNode; hint?: string }) {
return (
{children}
{hint !== undefined && (
{hint}
)}
);
}
export function AutoPopulatedFields() {
return (
Auto-populated fields
{AUTO_POPULATED_FIELDS.map((field) => (
-
{field}
))}
);
}
/** The standard bullets every generated document prints; never editable per template. */
export function StandardSafetyBullets({ extra }: { extra?: string | null }) {
return (
{SAFETY_BULLETS.map((bullet) => (
-
{bullet}
))}
{Boolean(extra) && (
- {extra}
)}
);
}