mirror of
https://github.com/steel-dev/cli.git
synced 2026-09-14 20:47:34 +08:00
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import React, {ReactElement} from 'react';
|
|
import {Form, FormProps} from 'ink-form';
|
|
// import {useFullscreen} from '../hooks/usefullscreen.js';
|
|
|
|
type Props = {
|
|
form: FormProps;
|
|
callback: (result: Record<string, any>) => void;
|
|
};
|
|
|
|
export default function PostDashboard({form, callback}: Props): ReactElement {
|
|
// useFullscreen();
|
|
|
|
return <Form {...form} onSubmit={result => callback(result)} />;
|
|
}
|