import React from 'react';
import Tnc from 'gatsby-core-theme/src/components/molecules/tnc';

export default function index(props) {
  const termsAndConditions = props?.operator?.extra_fields?.terms_and_conditions;

  return termsAndConditions ? <Tnc {...props} contentText={termsAndConditions} /> : null;
}
