import React, { Fragment } from 'react'; import InfoBox from '../../components/info-box'; import CheckboxDataEntry from '../data-components/checkbox-data-entry'; interface PlanningDataOfficialDataEntryProps { shownData: { uprn: string; building_id: number; status?: string, status_before_aliasing?: string, description?: string; planning_application_link?: string; registered_with_local_authority_date?: string; decision_date?: string; last_synced_date?: string; data_source: string; data_source_link?: string; address?: string; }[]; allEntryCount: number, } const {useState} = React; const LongText = ({ content,limit}) => { const [showAll, setShowAll] = useState(false); const showMore = () => setShowAll(true); const showLess = () => setShowAll(false); if (content == null) { return