Design system.
 
 
 

16 lines
333 B

  1. export const getMetadataFromUrl = async (videoUrl?: string) => {
  2. if (typeof videoUrl === 'undefined') {
  3. return {};
  4. }
  5. if (typeof window !== 'undefined') {
  6. const { getMetadataFromUrl: client } = await import('./client');
  7. return client(videoUrl);
  8. }
  9. // TODO server side
  10. return {};
  11. };
  12. export * from './common';