import PostThumbnailPreview from '@/components/posts/PostThumbnailPreview'

import type { FC } from 'react'

type Props = {
  url:        string
  file?:      File
  alt?:       string
  className?: string }


const PostImportThumbnailPreview: FC<Props> = (
    { url,
      file,
      alt = 'サムネール',
      className = 'h-16 w-16' },
) => (
    <PostThumbnailPreview
        url={url}
        file={file}
        alt={alt}
        className={className}
        referrerPolicy="no-referrer"/>)

export default PostImportThumbnailPreview
