Files
reflector/app/components/record.js
2023-07-20 00:40:11 +07:00

23 lines
714 B
JavaScript

export default function Record(props) {
return (
<div className="flex flex-col justify-center h-screen">
<div className="text-center py-6 mt-10">
<h1 className="text-5xl font-bold text-blue-500">Reflector</h1>
<p className="text-gray-500">Capture The Signal, Not The Noise</p>
</div>
<div className="flex flex-col items-center justify-center flex-grow -mt-10">
{!props.isRecording ? (
<button onClick={() => props.onRecord(true)} data-color="blue">
Record
</button>
) : (
<button onClick={() => props.onRecord(false)} data-color="red">
Stop
</button>
)}
</div>
</div>
);
}