mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 11:25:25 +01:00
30 lines
579 B
TypeScript
30 lines
579 B
TypeScript
import { theme } from '../../../stitches.config';
|
|
|
|
interface GapProps {
|
|
message: string;
|
|
}
|
|
|
|
export function Gap({ message: number }: GapProps) {
|
|
return (
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
padding: 8,
|
|
backgroundColor: theme.colors.componentNonInteractive,
|
|
borderRadius: 4,
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<span
|
|
style={{
|
|
color: theme.colors.textLowContrast,
|
|
fontSize: 16,
|
|
}}
|
|
>
|
|
{number.toLocaleString()}
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|