File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
'use client';
import { FoxButton } from '@fox/core/components/fox-button';
const EXCEL_DOWNLOAD_PATH = '/contents/quizzes/excel';
/**
* 엑셀 다운로드 — 기획 ②.
*
* TODO: 같은 자리의 「엑셀등록」(일괄등록)은 기획 중이라 아직 넣지 않았다. 백엔드에도 업로드
* 엔드포인트가 없다(`/api/v1/mngr/cntntns/quiz`에 `excel/download`만 있다). 기획이 확정되면
* 이 컴포넌트에 버튼과 Server Action을 함께 붙인다.
*/
export function QuizExcelActions() {
return (
<form action={EXCEL_DOWNLOAD_PATH} method="get">
<FoxButton
type="secondary"
size="md"
htmlType="submit"
leadingIcon={<i className="fox-ico fox-ico-DownloadSimple" aria-hidden="true" />}
label="엑셀다운로드"
/>
</form>
);
}