import { useId } from "react"; import clsx from "clsx"; import { t } from "../../i18n"; import { CloseIcon } from "../icons"; import "./ViewportStatusFrame.scss"; import type { CSSProperties } from "react"; import type { ViewportStatusFrame as ViewportStatusFrameType } from "../../types"; export const ViewportStatusBorder = ({ border, style, }: { border: string; style?: CSSProperties; }) => (
); export const ViewportStatusBadge = ({ label, border, }: { label: NonNullable; border?: ViewportStatusFrameType["border"]; }) => { const labelId = useId(); const labelContent = ( <> {label.icon && ( {label.icon} )} {label.label} ); return (
{label.onClick && ( )}
); };