Files
openpanel/packages/mantine/src/components/fields/file/index.tsx
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

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>
);
};