mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
22 lines
370 B
TypeScript
22 lines
370 B
TypeScript
import React, { ReactNode } from 'react';
|
|
import Grid from '@mui/material/Grid';
|
|
|
|
export default function ToolInputAndResult({
|
|
input,
|
|
result
|
|
}: {
|
|
input: ReactNode;
|
|
result: ReactNode;
|
|
}) {
|
|
return (
|
|
<Grid container spacing={2}>
|
|
<Grid item xs={6}>
|
|
{input}
|
|
</Grid>
|
|
<Grid item xs={6}>
|
|
{result}
|
|
</Grid>
|
|
</Grid>
|
|
);
|
|
}
|