mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
466a7eed78
* Cheap and cheerful debugger * Try to manage focus
20 lines
489 B
TypeScript
20 lines
489 B
TypeScript
import { h, ComponentChildren, JSX } from 'preact';
|
|
import cs from 'classnames';
|
|
|
|
import styles from './css/Inset.module.css';
|
|
|
|
interface InsetProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
children: ComponentChildren;
|
|
}
|
|
|
|
/**
|
|
* Convenience component for a nice beveled border.
|
|
*
|
|
* @returns Inset component
|
|
*/
|
|
export const Inset = ({ children, className, ...props }: InsetProps) => (
|
|
<div className={cs(className, styles.inset)} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|