Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

351 B
Raw Blame
import { FC } from 'react';

export const thirdPartyList: {identifier: string, Component: FC}[] = [];

export const thirdPartyWrapper = (identifier: string, Component: any): null => {
  if (thirdPartyList.map(p => p.identifier).includes(identifier)) {
    return null;
  }

  thirdPartyList.push({
    identifier,
    Component
  });

  return null;
}