mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: box props
This commit is contained in:
1 parent
c26dd277a8
commit
ac81c68889
1 file changed
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Box, Flex, Text } from '@radix-ui/themes';
|
import { Box, BoxProps, Flex, Text } from '@radix-ui/themes';
|
||||||
import { uniqueId } from 'lodash';
|
import { uniqueId } from 'lodash';
|
||||||
import { ComponentProps, useEffect, useRef } from 'react';
|
import { useEffect, useRef } from 'react';
|
||||||
import { Vector2Tuple } from 'three';
|
import { Vector2Tuple } from 'three';
|
||||||
import { imgur } from '../core/blitzkit/imgur';
|
import { imgur } from '../core/blitzkit/imgur';
|
||||||
import { useApp } from '../stores/app';
|
import { useApp } from '../stores/app';
|
||||||
@@ -21,9 +21,9 @@ const AD_DIMENSIONS: Record<AdType, Vector2Tuple> = {
|
|||||||
[AdType.HalfPageVerticalPurple]: [300, 600],
|
[AdType.HalfPageVerticalPurple]: [300, 600],
|
||||||
};
|
};
|
||||||
|
|
||||||
interface AdProps extends ComponentProps<'div'> {
|
type AdProps = BoxProps & {
|
||||||
type: AdType;
|
type: AdType;
|
||||||
}
|
};
|
||||||
|
|
||||||
export function Ad({ type, ...props }: AdProps) {
|
export function Ad({ type, ...props }: AdProps) {
|
||||||
const id = useRef(uniqueId());
|
const id = useRef(uniqueId());
|
||||||
|
|||||||
Reference in new issue
Block a user