import type { FC } from 'react'
import { ParentParityShell, type ParentParitySpec } from './ParentParityShell'

export function createParentParityPage(spec: ParentParitySpec): FC {
  const Page: FC = () => <ParentParityShell {...spec} />
  Page.displayName = `ParentParity(${spec.ciViewFile.replace(/\W/g, '_')})`
  return Page
}
