mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-24 09:08:23 +03:00
17 lines
349 B
TypeScript
17 lines
349 B
TypeScript
|
|
// Description Field Template
|
||
|
|
import type { DescriptionFieldProps } from "@rjsf/utils";
|
||
|
|
|
||
|
|
export function DescriptionFieldTemplate(props: DescriptionFieldProps) {
|
||
|
|
const { description, id } = props;
|
||
|
|
|
||
|
|
if (!description) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return (
|
||
|
|
<p id={id} className="text-sm text-muted-foreground">
|
||
|
|
{description}
|
||
|
|
</p>
|
||
|
|
);
|
||
|
|
}
|