mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-29 16:41:16 +03:00
18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
|
|
// Title Field Template
|
||
|
|
import type { TitleFieldProps } from "@rjsf/utils";
|
||
|
|
|
||
|
|
export function TitleFieldTemplate(props: TitleFieldProps) {
|
||
|
|
const { title, id, required } = props;
|
||
|
|
|
||
|
|
if (!title) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<h3 id={id} className="text-lg font-semibold">
|
||
|
|
{title}
|
||
|
|
{required && <span className="ml-1 text-destructive">*</span>}
|
||
|
|
</h3>
|
||
|
|
);
|
||
|
|
}
|