fa50a45e84
CI / Build & Quality Checks (push) Failing after 5m12s
Prettier: auto-formatted 103 files to fix baseline. Prettier check in CI is now a hard gate (removed continue-on-error). Brotli: installed libnginx-mod-http-brotli-filter/static. Enabled in nginx with brotli_static on for pre-compressed assets and comp_level 6. Sentry releases: deploy script now exports VITE_APP_VERSION=<git-short-sha> before building so each Sentry release maps to an exact commit. CI also passes github.sha as VITE_APP_VERSION. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
949 B
TypeScript
34 lines
949 B
TypeScript
import React from 'react';
|
|
import classNames from 'classnames';
|
|
import { Box, as } from 'folds';
|
|
import * as css from './UrlPreview.css';
|
|
|
|
export const UrlPreview = as<'div'>(({ className, ...props }, ref) => (
|
|
<Box
|
|
shrink="No"
|
|
data-url-preview=""
|
|
className={classNames(css.UrlPreview, className)}
|
|
{...props}
|
|
ref={ref}
|
|
/>
|
|
));
|
|
|
|
export const UrlPreviewImg = as<'img'>(({ className, alt, ...props }, ref) => (
|
|
<img className={classNames(css.UrlPreviewImg, className)} alt={alt} {...props} ref={ref} />
|
|
));
|
|
|
|
export const UrlPreviewContent = as<'div'>(({ className, ...props }, ref) => (
|
|
<Box
|
|
grow="Yes"
|
|
direction="Column"
|
|
gap="100"
|
|
className={classNames(css.UrlPreviewContent, className)}
|
|
{...props}
|
|
ref={ref}
|
|
/>
|
|
));
|
|
|
|
export const UrlPreviewDescription = as<'span'>(({ className, ...props }, ref) => (
|
|
<span className={classNames(css.UrlPreviewDescription, className)} {...props} ref={ref} />
|
|
));
|