Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ArticleHeader = ({
backgroundColour: rgbBackgroundColour,
flags,
hasVideo,
headline,
label,
standfirst,
textColour: rgbTextColour
}) => {
const backgroundColour = gqlRgbaToStyle(rgbBackgroundColour);
const textColour = gqlRgbaToStyle(rgbTextColour);
return (
{({ theme: { headlineFont, headlineCase } }) => (
const ArticleFlag = ({ title, color }) => (
const ArticleFlag = ({ title, color }) => (
const ArticleHeader = ({
backgroundColour: rgbBackgroundColour,
flags,
hasVideo,
headline,
label,
standfirst,
textColour: rgbTextColour
}) => {
const backgroundColour = gqlRgbaToStyle(rgbBackgroundColour);
const textColour = gqlRgbaToStyle(rgbTextColour);
return (
{({ theme: { headlineFont, headlineCase } }) => (
const ArticleHeader = ({
backgroundColour: rgbBackgroundColour,
flags,
hasVideo,
headline,
isTablet,
label,
standfirst,
textColour: rgbTextColour
}) => {
const backgroundColour = gqlRgbaToStyle(rgbBackgroundColour);
const textColour = gqlRgbaToStyle(rgbTextColour);
return (
{({ theme: { headlineFont, headlineCase } }) => (
const ArticleHeader = ({
backgroundColour: rgbBackgroundColour,
flags,
hasVideo,
headline,
isTablet,
label,
standfirst,
textColour: rgbTextColour
}) => {
const backgroundColour = gqlRgbaToStyle(rgbBackgroundColour);
const textColour = gqlRgbaToStyle(rgbTextColour);
return (
{({ theme: { headlineFont, headlineCase } }) => (