diff --git a/js/app/components/create-livestream.tsx b/js/app/components/create-livestream.tsx index 307ec97b9..60e6b6e2e 100644 --- a/js/app/components/create-livestream.tsx +++ b/js/app/components/create-livestream.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { Button, Label, Paragraph, TextArea, View, isWeb } from "tamagui"; import { useToastController } from "@tamagui/toast"; import { @@ -8,7 +8,7 @@ import { } from "features/bluesky/blueskySlice"; import { useAppDispatch, useAppSelector } from "store/hooks"; import { useLiveUser } from "hooks/useLiveUser"; -import ThumbnailSelector from "components/thumbnail-selector/thumbnail-selector"; +import ThumbnailSelector from "components/thumbnail-selector"; import { useCaptureVideoFrame } from "hooks/useCaptureVideoFrame"; const Left = ({ children }: { children: React.ReactNode }) => { diff --git a/js/app/components/thumbnail-selector/index.tsx b/js/app/components/thumbnail-selector/index.tsx new file mode 100644 index 000000000..3862f18cf --- /dev/null +++ b/js/app/components/thumbnail-selector/index.tsx @@ -0,0 +1,2 @@ +import ThumbnailSelector from "./thumbnail-selector"; +export default ThumbnailSelector; diff --git a/js/app/components/thumbnail-selector/shared.tsx b/js/app/components/thumbnail-selector/shared.tsx new file mode 100644 index 000000000..05f29e13a --- /dev/null +++ b/js/app/components/thumbnail-selector/shared.tsx @@ -0,0 +1,4 @@ +export interface ThumbnailSelectorProps { + onThumbnailSelected: (blob: Blob | undefined) => void; + thumbnailUrl?: string; +} diff --git a/js/app/components/thumbnail-selector/thumbnail-selector.native.tsx b/js/app/components/thumbnail-selector/thumbnail-selector.native.tsx new file mode 100644 index 000000000..bc568a79d --- /dev/null +++ b/js/app/components/thumbnail-selector/thumbnail-selector.native.tsx @@ -0,0 +1,6 @@ +import { Paragraph } from "tamagui"; +import { ThumbnailSelectorProps } from "./shared"; + +export default function ThumbnailSelector(props: ThumbnailSelectorProps) { + return NYI; +} diff --git a/js/app/components/thumbnail-selector/thumbnail-selector.tsx b/js/app/components/thumbnail-selector/thumbnail-selector.tsx index e5aff7826..33908a28c 100644 --- a/js/app/components/thumbnail-selector/thumbnail-selector.tsx +++ b/js/app/components/thumbnail-selector/thumbnail-selector.tsx @@ -3,11 +3,7 @@ import { Button, Image, Text, View, isWeb } from "tamagui"; import { Platform } from "react-native"; import * as ImagePicker from "expo-image-picker"; import { Camera, Image as ImageIcon, X } from "@tamagui/lucide-icons"; - -interface ThumbnailSelectorProps { - onThumbnailSelected: (blob: Blob | undefined) => void; - thumbnailUrl?: string; -} +import { ThumbnailSelectorProps } from "./shared"; export default function ThumbnailSelector({ onThumbnailSelected,