mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
18 lines
313 B
TypeScript
18 lines
313 B
TypeScript
import React from "react";
|
|
|
|
import { UrlField } from "@components";
|
|
|
|
import type { FileFieldProps } from "../types";
|
|
|
|
export const FileField: React.FC<FileFieldProps> = ({
|
|
title,
|
|
src,
|
|
...rest
|
|
}) => {
|
|
return (
|
|
<UrlField value={src} title={title} {...rest}>
|
|
{title ?? src}
|
|
</UrlField>
|
|
);
|
|
};
|