mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-04-18 22:08:27 +00:00
11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
import { useMobile } from '~/hooks';
|
|
import { DesktopPrompt } from './desktop';
|
|
import { MobilePrompt } from './mobile';
|
|
|
|
import type { PromptProps } from './types';
|
|
|
|
export const Prompt = (props: PromptProps): JSX.Element => {
|
|
const isMobile = useMobile();
|
|
|
|
return isMobile ? <MobilePrompt {...props} /> : <DesktopPrompt {...props} />;
|
|
};
|