import * as React from 'react'; import { colors } from 'ts/style/colors'; import { ScreenWidths } from 'ts/types'; export interface MissionProps { screenWidth: ScreenWidths; } export const Mission = (props: MissionProps) => { const isSmallScreen = props.screenWidth === ScreenWidths.Sm; const image = (
); const missionStatementStyle = !isSmallScreen ? { height: 364, lineHeight: '364px' } : undefined; const missionStatement = (
Our Mission
We believe a system can exist in which all world value is accessible to anyone, anywhere, regardless of where you happen to be born.
); return (
{isSmallScreen ? (
{missionStatement} {image}
) : (
{image} {missionStatement}
)}
); };