pankod/refine

View on GitHub
packages/mantine/src/components/fields/file/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage
import React from "react";

import { UrlField } from "@components";

import { FileFieldProps } from "../types";

export const FileField: React.FC<FileFieldProps> = ({
  title,
  src,
  ...rest
}) => {
  return (
    <UrlField value={src} title={title} {...rest}>
      {title ?? src}
    </UrlField>
  );
};