import { forwardRef } from 'react'
import { FileCard } from './file-card'
import type { FileCardProps } from './file-card'

export type FileAttachmentProps = Omit<FileCardProps, 'variant'>

export const FileAttachment = forwardRef<HTMLDivElement, FileAttachmentProps>(
  (props, ref) => <FileCard ref={ref} variant="attachment" {...props} />
)

FileAttachment.displayName = 'FileAttachment'
