import React from 'react';
interface Props {
  fullWidth?: 0 | 1 | boolean;
}

const Component: React.FC<Props> = ({ fullWidth, children, ...rest }) => {
  return (
    <div className={fullWidth ? 'full-width' : ''} {...rest}>
      {children}
    </div>
  );
};

//====================

function App() {
  <Component fullWidth={false}>component</Component>;
}
