Skip to content

🎥 Make videos programmatically with React

1.3 KB
Raw Blame
import React from 'react';

const RenderIcon: React.FC = () => {
	return (
		<svg
			style={{height: 16}}
			xmlns="http://www.w3.org/2000/svg"
			viewBox="0 0 512 512"
		>
			<path
				fill={'currentColor'}
				d="M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"
			/>
		</svg>
	);
};

const renderButtonStyle: React.CSSProperties = {
	paddingLeft: 7,
	paddingRight: 7,
	paddingTop: 7,
	paddingBottom: 7,
	border: '1px solid rgba(0, 0, 0, 0.6)',
	borderRadius: '4px',
	backgroundColor: 'rgb(47, 54, 61)',
	display: 'flex',
	justifyContent: 'center',
	alignItems: 'center',
	width: 86,
	height: 32,
	margin: '0px 4px',
	color: 'white',
};

export const RenderButton: React.FC = () => {
	return (
		<div style={renderButtonStyle}>
			<RenderIcon />
			<div style={{width: 8}} />
			<div style={{fontSize: 14}}> Render</div>
		</div>
	);
};