mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
12 lines
344 B
TypeScript
12 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} />;
|
|
};
|