mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-02 19:39:08 -05:00
This PR prompts you to save un-previewable file types and adds an option to save to the response history.
16 lines
445 B
TypeScript
16 lines
445 B
TypeScript
import classNames from 'classnames';
|
|
import type { HTMLAttributes } from 'react';
|
|
|
|
export function InlineCode({ className, ...props }: HTMLAttributes<HTMLSpanElement>) {
|
|
return (
|
|
<code
|
|
className={classNames(
|
|
className,
|
|
'font-mono text-shrink bg-background-highlight-secondary border border-background-highlight-secondary',
|
|
'px-1.5 py-0.5 rounded text-fg shadow-inner',
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|