mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
22 lines
500 B
TypeScript
22 lines
500 B
TypeScript
import React from 'react';
|
|
import type { CSSProperties } from 'react';
|
|
import classnames from 'classnames';
|
|
import { createPrefixName } from '../../css';
|
|
|
|
const modName = 'mod-xxx';
|
|
|
|
const prefixName = createPrefixName(modName);
|
|
|
|
export interface ModProps {
|
|
className?: string;
|
|
style?: CSSProperties;
|
|
}
|
|
|
|
export const Mod = (props: ModProps) => {
|
|
const { className, style } = props;
|
|
return (
|
|
<div style={style} className={classnames(prefixName(), className)}>
|
|
Mod
|
|
</div>
|
|
);
|
|
};
|