Reviewed-on: http://git.miteruzo.com/miteruzo/btrc-hub/pulls/413 Co-authored-by: miteruzo <miteruzo@naver.com> Co-committed-by: miteruzo <miteruzo@naver.com>
26 行
547 B
TypeScript
26 行
547 B
TypeScript
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
|