mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-10 00:20:44 +02:00
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
// {
|
|
// record: undefined,
|
|
// field: undefined,
|
|
// short: false,
|
|
// }
|
|
export function view(props) {
|
|
return t.div(
|
|
{ className: "record-field-view field-type-date" },
|
|
app.components.formattedDate({
|
|
value: () => props.record[props.field.name],
|
|
short: () => props.short,
|
|
}),
|
|
);
|
|
}
|