mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
18 lines
469 B
TypeScript
18 lines
469 B
TypeScript
import type { HTMLProps, Ref } from 'react';
|
|
|
|
import { css, cx } from '@emotion/css';
|
|
|
|
import type { CSSProperties } from './styles';
|
|
|
|
type BlockProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
|
|
innerRef?: Ref<HTMLDivElement>;
|
|
style?: CSSProperties;
|
|
};
|
|
|
|
export function Block(props: BlockProps) {
|
|
const { className = '', style, innerRef, ...restProps } = props;
|
|
return (
|
|
<div {...restProps} ref={innerRef} className={cx(className, css(style))} />
|
|
);
|
|
}
|