import { Button, FormControl, FormLabel, Input, Stack } from "@hope-ui/solid" import { FolderChooseInput } from "~/components" import { useT } from "~/hooks" export type S3Bucket = { name: string path: string } type props = S3Bucket & { onChange: (val: S3Bucket) => void onDelete: () => void } export const S3BucketItem = (props: props) => { const t = useT() return ( {t(`global.name`)} props.onChange({ ...props, name: e.currentTarget.value }) } /> {t(`metas.path`)} props.onChange({ ...props, path: e })} /> ) }