'use client'; import * as React from 'react'; import { PlatformContext } from '../components/ConfigProvider/ConfigProviderSubContexts'; import type { HasPlatform } from '../types'; export function withPlatform( Component: React.ComponentType, ): React.FC> { function WithPlatform(props: Omit) { const platform = React.useContext(PlatformContext); return ; } return WithPlatform; }