Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

267 B
Raw Blame
interface FilePreviewImageProps {
  url: string;
  name: string;
}

export const FilePreviewImage = ({ url, name }: FilePreviewImageProps) => {
  return (
    <img
      src={url}
      alt={name}
      className="max-h-full max-w-full object-contain"
    />
  );
};